aboutsummaryrefslogtreecommitdiffstats
path: root/test/objspace
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 09:24:02 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 09:24:02 +0000
commit6692436b9fe206c130fbfa3fa7b41e18c1048f4a (patch)
treed1b952cfd643a2616acdbc85541dc2d44ff74851 /test/objspace
parent53035271a8ae5379152c2fe0c80d1e50515f5fc2 (diff)
downloadruby-6692436b9fe206c130fbfa3fa7b41e18c1048f4a.tar.gz
ext/objspace: remove OS.after_gc_start_hook= and move internal test
* ext/objspace/gc_hook.c: remove this file * ext/-test-/tracepoint/gc_hook.c: new filename for above * ext/objspace/objspace.c: remove ObjectSpace.after_gc_start_hook= * test/objspace/test_objspace.rb: remove test * test/-ext-/tracepoint/test_tracepoint.rb: add above test for tracepoint re-entry git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/objspace')
-rw-r--r--test/objspace/test_objspace.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 83cd6d3ca0..f8d1c405e8 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -193,25 +193,6 @@ class TestObjSpace < Test::Unit::TestCase
assert_equal(nil, ObjectSpace.allocation_sourcefile(obj3))
end
- def test_after_gc_start_hook_with_GC_stress
- bug8492 = '[ruby-dev:47400] [Bug #8492]: infinite after_gc_start_hook reentrance'
- assert_nothing_raised(Timeout::Error, bug8492) do
- assert_in_out_err(%w[-robjspace], <<-'end;', /\A[1-9]/, timeout: 2)
- stress, GC.stress = GC.stress, false
- count = 0
- ObjectSpace.after_gc_start_hook = proc {count += 1}
- begin
- GC.stress = true
- 3.times {Object.new}
- ensure
- GC.stress = stress
- ObjectSpace.after_gc_start_hook = nil
- end
- puts count
- end;
- end
- end
-
def test_dump_to_default
line = nil
info = nil