Make WeakMap safe for compaction during allocation
During allocation, the table may not have been allocated yet which would crash in the st_foreach.
This commit is contained in:
parent
d313c82f79
commit
33cf8f640b
@ -237,6 +237,10 @@ class TestWeakMap < Test::Unit::TestCase
|
||||
end;
|
||||
end
|
||||
|
||||
def test_gc_compact_stress
|
||||
EnvUtil.under_gc_compact_stress { ObjectSpace::WeakMap.new }
|
||||
end
|
||||
|
||||
def test_replaced_values_bug_19531
|
||||
a = "A".dup
|
||||
b = "B".dup
|
||||
|
Loading…
x
Reference in New Issue
Block a user