[ruby-cvs:51153] tmm1:r44008 (trunk): gc.c: add GC.latest_gc_info()

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Thu Dec 5 19:30:39 JST 2013


tmm1	2013-12-05 19:30:38 +0900 (Thu, 05 Dec 2013)

  New Revision: 44008

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

  Log:
    gc.c: add GC.latest_gc_info()
    
    * gc.c (struct rb_objspace): rename internal last_collection_flags to
      latest_gc_info
    * gc.c (gc_latest_collection_info): add GC.latest_gc_info() with similar
      behavior to GC.stat()
    * gc.c (rb_gc_latest_gc_info): new c-api for above
    * gc.c (gc_stat_internal): remove :last_collection_flags from GC.stat
    * gc.c (gc_profile_decode_flags): remove GC::Profiler.decode_flags
    * include/ruby/intern.h (rb_gc_latest_gc_info): export new c-api
    * test/ruby/test_gc.rb (class TestGc): test for new behavior
    * NEWS: note about new api
    
    * gc.c (gc_stat_internal): raise TypeError on wrong type
    * gc.c (gc_stat): fix error message

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/gc.c
    trunk/include/ruby/intern.h
    trunk/test/ruby/test_gc.rb


More information about the ruby-cvs mailing list