mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
Add more GC guards
This commit is contained in:
parent
d7888e4626
commit
3034553e8d
Notes:
git
2023-03-06 07:29:48 +00:00
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue