Invalidate blocks on global constant changes

This commit is contained in:
Takashi Kokubun 2023-03-01 21:32:36 -08:00
parent b5fbc9f59f
commit 7dcdffebc8
Notes: git 2023-03-06 07:29:49 +00:00
7 changed files with 88 additions and 46 deletions

View file

@ -249,7 +249,7 @@ module RubyVM::MJIT
# Invalidate output code on any constant writes associated with
# constants referenced within the current block.
#assume_stable_constant_names(jit, ocb, idlist);
Invariants.assume_stable_constant_names(jit, idlist)
putobject(jit, ctx, asm, val: ice.value)
end