[ruby-cvs:51172] tmm1:r44027 (trunk): gc.c: add minor marking and lazy sweeping options to GC.start

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Fri Dec 6 14:11:54 JST 2013


tmm1	2013-12-06 14:11:51 +0900 (Fri, 06 Dec 2013)

  New Revision: 44027

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

  Log:
    gc.c: add minor marking and lazy sweeping options to GC.start
    
    * gc.c (gc_start_internal): GC.start() now accepts two optional
      keyword arguments. These can be used to disable full_mark (minor
      mark only) or disable immediate_sweep (use lazy sweep). These new
      options are useful for benchmarking GC behavior, or performing minor
      GC out-of-band.
    * test/ruby/test_gc.rb (class TestGc): tests for new options.

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


More information about the ruby-cvs mailing list