diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-08 22:15:40 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-08 22:15:40 +0000 |
commit | 2e19adc87c5662c5df23ea8bfe6559b6c3b983ee (patch) | |
tree | 46ef11f6f23d4eaa01b98d024b157d9ac327e4d4 /test/ruby/test_gc.rb | |
parent | 278eafb9b9b43d1c87e9c6ae9516cf44bfc655f7 (diff) | |
download | ruby-2e19adc87c5662c5df23ea8bfe6559b6c3b983ee.tar.gz |
* gc.c: rename PAGE_* to HEAP_PAGE_* because PAGE_SIZE is used
in Mac OS X.
* test/ruby/test_gc.rb: catch up this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 56ddc710d5..849f740b14 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -126,7 +126,7 @@ class TestGc < Test::Unit::TestCase def test_latest_gc_info assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom' GC.start - count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:PAGE_OBJ_LIMIT] + count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_PAGE_OBJ_LIMIT] count.times{ "a" + "b" } assert_equal :newobj, GC.latest_gc_info[:gc_by] eom @@ -301,7 +301,7 @@ class TestGc < Test::Unit::TestCase end def test_gc_internals - assert_not_nil GC::INTERNAL_CONSTANTS[:PAGE_OBJ_LIMIT] + assert_not_nil GC::INTERNAL_CONSTANTS[:HEAP_PAGE_OBJ_LIMIT] assert_not_nil GC::INTERNAL_CONSTANTS[:RVALUE_SIZE] end |