summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-06 17:44:19 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:42 -0400
commit7c08538aa3a366409784f6a8b7aa013b85633803 (patch)
treecae00db737ff8fa27ba347f9a2960fe4f7e8fadd /vm_insnhelper.c
parent884b6f3dbb33ef98fbfe96e7c70ccc8bb5735829 (diff)
Cleanup diff against upstream. Add comments
I did a `git diff --stat` against upstream and looked at all the files that are outside of YJIT to come up with these minor changes.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index aafd5a28d2..d068beb8be 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -4808,6 +4808,8 @@ vm_ic_update(const rb_iseq_t *iseq, IC ic, VALUE val, const VALUE *reg_ep)
ruby_vm_const_missing_count = 0;
RB_OBJ_WRITE(iseq, &ic->entry, ice);
#ifndef MJIT_HEADER
+ // MJIT and YJIT can't be on at the same time, so there is no need to
+ // notify YJIT about changes to the IC when running inside MJIT code.
rb_yjit_constant_ic_update(iseq, ic);
#endif
}