summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:57:14 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 06:57:14 +0000
commit0094b7bb6822fb230cc3475d49faff15674bb886 (patch)
treecb00502ccfef2fa450585e8373ef57d4012325b1 /test/ruby
parent23178d10444f256af67c15deb4a5e16811135723 (diff)
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb5
1 files changed, 5 insertions, 0 deletions
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