[ruby-cvs:50281] tmm1:r43139 (trunk): gc.c: add objspace_free_num and make GC.stat[:heap_free_num] use it

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Fri Oct 4 19:05:41 JST 2013


tmm1	2013-10-04 19:05:40 +0900 (Fri, 04 Oct 2013)

  New Revision: 43139

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43139

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/test/ruby/test_gc.rb


More information about the ruby-cvs mailing list