Make WeakKeyMap 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
33cf8f640b
commit
185b7e92a3
@ -123,6 +123,10 @@ class TestWeakKeyMap < Test::Unit::TestCase
|
||||
end;
|
||||
end
|
||||
|
||||
def test_gc_compact_stress
|
||||
EnvUtil.under_gc_compact_stress { ObjectSpace::WeakKeyMap.new }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def assert_weak_include(m, k, n = 100)
|
||||
|
Loading…
x
Reference in New Issue
Block a user