diff options
Diffstat (limited to 'yjit/src/yjit.rs')
-rw-r--r-- | yjit/src/yjit.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/yjit/src/yjit.rs b/yjit/src/yjit.rs index d75b9db0ee..3201af6982 100644 --- a/yjit/src/yjit.rs +++ b/yjit/src/yjit.rs @@ -139,9 +139,12 @@ pub extern "C" fn rb_yjit_code_gc(_ec: EcPtr, _ruby_self: VALUE) -> VALUE { return Qnil; } - let cb = CodegenGlobals::get_inline_cb(); - let ocb = CodegenGlobals::get_outlined_cb(); - cb.code_gc(ocb); + with_vm_lock(src_loc!(), || { + let cb = CodegenGlobals::get_inline_cb(); + let ocb = CodegenGlobals::get_outlined_cb(); + cb.code_gc(ocb); + }); + Qnil } |