From d380745cc34db08ad12b66f11bc0e185df3c180b Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 30 Aug 2009 06:12:37 +0000 Subject: * gc.c (gc_sweep): makes new room if object space is full of finalized objects and has no free objects. [ruby-dev:39201] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index d0b4e3df77..ed854bde65 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -26,5 +26,9 @@ class TestGc < Test::Unit::TestCase } GC.start assert true # reach here or dumps core + 100000.times { + Time.now + } + assert true, '[ruby-dev:39201]' # reach here or dumps core end end -- cgit v1.2.3