mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reset object allocation trace information
Compaction makes collisions in the weak map more likely. For now, clear the tracing information before the test run so we get accurate results
This commit is contained in:
parent
e939a5c29f
commit
7226f76255
1 changed files with 1 additions and 0 deletions
|
@ -165,6 +165,7 @@ class TestObjSpace < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_trace_object_allocations
|
||||
ObjectSpace.trace_object_allocations_clear # clear object_table to get rid of erroneous detection for c0
|
||||
Class.name
|
||||
o0 = Object.new
|
||||
ObjectSpace.trace_object_allocations{
|
||||
|
|
Loading…
Reference in a new issue