[ruby-cvs:54470] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object

normal at ruby-lang.org normal at ruby-lang.org
Sat Aug 30 19:30:01 JST 2014


normal	2014-08-30 19:30:00 +0900 (Sat, 30 Aug 2014)

  New Revision: 47322

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

  Log:
    symbol.c (rb_sym2id): do not return garbage object
    
    The dynamic sym passed to rb_sym2id may be a garbage object
    (as accounted for by dsymbol_check).  This fixes an occasional
    segfault in "make test-all" for me.
    
    No need to backport, this is from the new symbol GC feature.

  Modified files:
    trunk/ChangeLog
    trunk/symbol.c


More information about the ruby-cvs mailing list