summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-02-18 14:45:17 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 23:28:59 -0800
commitfeb60f6f5107561f2e83e3f53b1db52d2b201708 (patch)
tree1516b160b90070bed0c8a53248439690d688684e /vm_insnhelper.c
parent2cc4f506bac0748277b41a4a5eb6f0ec41dd7344 (diff)
downloadruby-feb60f6f5107561f2e83e3f53b1db52d2b201708.tar.gz
Invalidate blocks on constant IC updates
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index ea3220fe5d..b2321ed7c8 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -5530,6 +5530,7 @@ vm_ic_update(const rb_iseq_t *iseq, IC ic, VALUE val, const VALUE *reg_ep, const
RUBY_ASSERT(pc >= ISEQ_BODY(iseq)->iseq_encoded);
unsigned pos = (unsigned)(pc - ISEQ_BODY(iseq)->iseq_encoded);
rb_yjit_constant_ic_update(iseq, ic, pos);
+ rb_mjit_constant_ic_update(iseq, ic, pos);
}
static VALUE