Project

General

Profile

« Previous | Next » 

Revision 907a03fe

Added by tmm1 (Aman Karmani) over 10 years ago

gc.c: add objspace_free_num and make GC.stat[:heap_free_num] use it

    * gc.c (objspace_free_num): new method for available/free slots on
      heap. [ruby-core:57633] [Bug #8983]
    * gc.c (gc_stat): change heap_free_num definition to use new method.
    * test/ruby/test_gc.rb: test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e