summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/hooks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby_vm/mjit/hooks.rb')
-rw-r--r--lib/ruby_vm/mjit/hooks.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ruby_vm/mjit/hooks.rb b/lib/ruby_vm/mjit/hooks.rb
index 477c4e0ae8..57d4ebc381 100644
--- a/lib/ruby_vm/mjit/hooks.rb
+++ b/lib/ruby_vm/mjit/hooks.rb
@@ -13,10 +13,12 @@ module RubyVM::MJIT
# C.mjit_cancel_all("Ractor is spawned")
end
- def self.on_constant_state_changed(_id)
- # to be used later
+ # Global constant changes like const_set
+ def self.on_constant_state_changed(id)
+ Invariants.on_constant_state_changed(id)
end
+ # ISEQ-specific constant invalidation
def self.on_constant_ic_update(iseq, ic, insn_idx)
iseq = C.rb_iseq_t.new(iseq)
ic = C.IC.new(ic)