From e35fe8d11b889a5646a23df06bbecf16f88c518a Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 27 Oct 2017 16:44:57 +0000 Subject: Revert "Revert "Manage AST NODEs out of GC"" This re-introduces r60485. This reverts commit 5a176b75b1187cbd3861c387bde65ff66396a07c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 67fd40a51e..7a6309b6a3 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -290,6 +290,9 @@ class TestGc < Test::Unit::TestCase base_length = GC.stat[:heap_eden_pages] (base_length * 500).times{ 'a' } GC.start + base_length = GC.stat[:heap_eden_pages] + (base_length * 500).times{ 'a' } + GC.start assert_in_epsilon base_length, (v = GC.stat[:heap_eden_pages]), 1/8r, "invalid heap expanding (base_length: #{base_length}, GC.stat[:heap_eden_pages]: #{v})" -- cgit v1.2.3