[ruby-cvs:52139] normal:r44994 (trunk): marshal.c: use rb_gc_force_recycle for GC-safety

normal at ruby-lang.org normal at ruby-lang.org
Sun Feb 16 12:45:15 JST 2014

normal	2014-02-16 12:45:15 +0900 (Sun, 16 Feb 2014)

  New Revision: 44994


    marshal.c: use rb_gc_force_recycle for GC-safety
    Putting rb_gc_force_recycle at the end of the function has a nice
    side-effect of keeping wrapper visible to GC until the moment of
    recycle, preventing GC from prematurely killing live objects.
    volatile is a common source of compiler bugs/differences, avoid it.

  Modified files:

More information about the ruby-cvs mailing list