[ruby-cvs:67608] mame:r60427 (trunk): Make imemo_alloc writebarrier-unprotected

mame at ruby-lang.org mame at ruby-lang.org
Wed Oct 25 22:19:45 JST 2017


mame	2017-10-25 22:19:45 +0900 (Wed, 25 Oct 2017)

  New Revision: 60427

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

  Log:
    Make imemo_alloc writebarrier-unprotected
    
    imemo_alloc provides a memory buffer whose contents are marked by GC.
    C code can access imemo_alloc buffer freely, so imemo_alloc must be
    considered writebarrier-unprotected.  But T_IMEMO is writebarrier-
    protected by default, which caused a GC bug.

  Modified files:
    trunk/gc.c
    trunk/parse.y


More information about the ruby-cvs mailing list