summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/compiler.rb
diff options
authorTakashi Kokubun <[email protected]>2023-03-01 23:15:51 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commit3034553e8dc1e78b96ad283ab57c70e674f54d6e (patch)
tree85a8b068e2103743793b61e6330b50852f9cbce2 /lib/ruby_vm/mjit/compiler.rb
parentd7888e462698f89d90e7baf3a0014d63e9aaad2d (diff)
Add more GC guards
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'lib/ruby_vm/mjit/compiler.rb')
-rw-r--r--lib/ruby_vm/mjit/compiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb
index e6dde1d824..2f67136102 100644
--- a/lib/ruby_vm/mjit/compiler.rb
+++ b/lib/ruby_vm/mjit/compiler.rb
@@ -289,7 +289,7 @@ module RubyVM::MJIT
end
def mjit_blocks(iseq)
- # Tolerate GC on any ISEQ
+ # Guard against ISEQ GC at random moments
if C.imemo_type(iseq) != C.imemo_iseq
return Hash.new { |h, k| h[k] = {} }
end