summaryrefslogtreecommitdiff
path: root/test/-ext-/tracepoint/test_tracepoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/tracepoint/test_tracepoint.rb')
-rw-r--r--test/-ext-/tracepoint/test_tracepoint.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/tracepoint/test_tracepoint.rb b/test/-ext-/tracepoint/test_tracepoint.rb
index efbf40b460..7d079779a8 100644
--- a/test/-ext-/tracepoint/test_tracepoint.rb
+++ b/test/-ext-/tracepoint/test_tracepoint.rb
@@ -25,11 +25,15 @@ class TestTracepointObj < Test::Unit::TestCase
stat1 = {}
stat2 = {}
+ GC.disable
GC.stat(stat1)
result = Bug.tracepoint_track_objspace_events{
+ GC.enable
1_000_000.times{''}
+ GC.disable
}
GC.stat(stat2)
+ GC.enable
newobj_count, free_count, gc_start_count, gc_end_count, *newobjs = *result