diff options
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/codegen.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index e135389ecf..e5437d707f 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -2290,6 +2290,11 @@ fn gen_setinstancevariable( if needs_extension { // Generate the C call so that runtime code will increase // the capacity and set the buffer. + asm.comment("call rb_ensure_iv_list_size"); + + // It allocates so can trigger GC, which takes the VM lock + // so could yield to a different ractor. + jit_prepare_routine_call(jit, asm); asm.spill_temps(); // for ccall asm.ccall(rb_ensure_iv_list_size as *const u8, vec![ |