summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/invariants.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-02-21 00:19:37 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commit8d29b0635bd87cb8e0521cb0ffdc617382e3cccb (patch)
treee1d677401447a0e030cf51a0e822b6bfbe369bda /lib/ruby_vm/mjit/invariants.rb
parent32e6f15bebf120635d575986fdded1a3943395d0 (diff)
Implement putstring
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'lib/ruby_vm/mjit/invariants.rb')
-rw-r--r--lib/ruby_vm/mjit/invariants.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ruby_vm/mjit/invariants.rb b/lib/ruby_vm/mjit/invariants.rb
index 21f70d00a2..648044f027 100644
--- a/lib/ruby_vm/mjit/invariants.rb
+++ b/lib/ruby_vm/mjit/invariants.rb
@@ -82,6 +82,9 @@ module RubyVM::MJIT
end
def on_update_references
+ # Give up. In order to support GC.compact, you'd have to update ISEQ
+ # addresses in BranchStub, etc. Ideally, we'd need to update moved
+ # pointers in JITed code here, but we just invalidate all for now.
invalidate_all
end