aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index f00b77c79d..2b785a7ebe 100644
--- a/thread.c
+++ b/thread.c
@@ -1679,7 +1679,8 @@ rb_thread_call_with_gvl(void *(*func)(void *), void *data1)
/* enter to Ruby world: You can access Ruby values, methods and so on. */
r = (*func)(data1);
/* leave from Ruby world: You can not access Ruby values, etc. */
- blocking_region_begin(th, brb, prev_unblock.func, prev_unblock.arg, FALSE);
+ int released = blocking_region_begin(th, brb, prev_unblock.func, prev_unblock.arg, FALSE);
+ RUBY_ASSERT_ALWAYS(released);
return r;
}