From 0094b7bb6822fb230cc3475d49faff15674bb886 Mon Sep 17 00:00:00 2001 From: tmm1 Date: Wed, 27 Nov 2013 06:57:14 +0000 Subject: * gc.c (Init_GC): Add new GC::INTERNAL_CONSTANTS for information about GC heap/page/slot sizing. * test/ruby/test_gc.rb (class TestGc): test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index da4a0b585d..ce7c5c3927 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -212,4 +212,9 @@ class TestGc < Test::Unit::TestCase assert base_length < GC.stat[:heap_eden_page_length] eom end + + def test_gc_internals + assert_not_nil GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT] + assert_not_nil GC::INTERNAL_CONSTANTS[:RVALUE_SIZE] + end end -- cgit v1.2.3