[ruby-cvs:50861] ko1:r43718 (trunk): * gc.c (rb_gc_resurrect): added.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Nov 19 18:48:48 JST 2013


ko1	2013-11-19 18:48:47 +0900 (Tue, 19 Nov 2013)

  New Revision: 43718

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

  Log:
    * gc.c (rb_gc_resurrect): added.
      rb_fstring() used rb_gc_mark() to avoid freeing used string.
      However, rb_gc_mark() set mark bit *and* pushes mark_stack.
      rb_gc_resurrect() does only set mark bit if it is before sweeping.
    * string.c (rb_fstring): use rb_gc_resurrect.
    * internal.h: add decl.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/internal.h
    trunk/string.c


More information about the ruby-cvs mailing list