[ruby-cvs:57160] ko1:r50011 (trunk): * gc.c (check_rvalue_consistency): refactoring.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Mar 19 03:46:12 JST 2015


ko1	2015-03-19 03:46:10 +0900 (Thu, 19 Mar 2015)

  New Revision: 50011

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

  Log:
    * gc.c (check_rvalue_consistency): refactoring.
      * not inline on RGENGC_CHECK_MODE > 0.
      * check SPECIAL_CONST_P(obj) first.
      * add a check that remembered_bit is only TRUE when old (age == 3).
    * gc.c (RVALUE_DEMOTE): should clear RVALUE_REMEMBERED bit.
      remembered_bit should be TRUE only for old (age == 3) objects.
      Actually there are no effect because demoted objects will be
      uncollectible WB unprotected objects (marked at the begginig of
      every minor GC).

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list