diff options
author | Samuel Williams <[email protected]> | 2021-07-16 15:22:17 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2021-09-20 23:16:45 +1200 |
commit | b61064b821823e016e8015f3d9eeab3cf9074ccd (patch) | |
tree | c6f4718621a159ae5b0575dd252c4d7d409ac20c /vm_eval.c | |
parent | cb8434563d3cc8fc5c3a5aa1e34ad7a9bb542cdb (diff) |
Add gvl and fiber assertions to scheduler interface to catch invalid usage.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4656
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |