aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-07-16 15:22:17 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-09-20 23:16:45 +1200
commitb61064b821823e016e8015f3d9eeab3cf9074ccd (patch)
treec6f4718621a159ae5b0575dd252c4d7d409ac20c /vm_eval.c
parentcb8434563d3cc8fc5c3a5aa1e34ad7a9bb542cdb (diff)
downloadruby-b61064b821823e016e8015f3d9eeab3cf9074ccd.tar.gz
Add gvl and fiber assertions to scheduler interface to catch invalid usage.
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 20d63db2b4..ed065977c3 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -645,6 +645,8 @@ rb_check_funcall(VALUE recv, ID mid, int argc, const VALUE *argv)
static VALUE
rb_check_funcall_default_kw(VALUE recv, ID mid, int argc, const VALUE *argv, VALUE def, int kw_splat)
{
+ VM_ASSERT(ruby_thread_has_gvl_p());
+
VALUE klass = CLASS_OF(recv);
const rb_callable_method_entry_t *me;
rb_execution_context_t *ec = GET_EC();