[ruby-cvs:61157] ko1:r53996 (trunk): * gc.c: rename "enum gc_stat" to "enum gc_mode"

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Mar 4 18:53:03 JST 2016


ko1	2016-03-04 18:53:03 +0900 (Fri, 04 Mar 2016)

  New Revision: 53996

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53996

  Log:
    * gc.c: rename "enum gc_stat" to "enum gc_mode"
      because there is a same name (no related) function gc_stat().
    
      Also gc_stat_* are renamed to gc_mode_*,
      gc_stat_transition() to gc_mode_transition(),
      rb_objspace::flags::stat is renamed to rb_objspace::flags::mode.
    
      Change rb_objspace::flags::mode from 2 bits to 3 bits because VC++
      returns negative enum value with 2 bits.
    
    * gc.c (gc_mode): add a macro to access rb_objspace::flags::mode
      with verification code (verification is enabled only on
      RGENGC_CHECK_MODE > 0).
    
    * gc.c (gc_mode_set): same macro for setter.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list