[ruby-cvs:54338] ko1:r47190 (trunk): * string.c (setup_fake_str): fake strings should not set class by

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Aug 15 19:37:43 JST 2014


ko1	2014-08-15 19:37:42 +0900 (Fri, 15 Aug 2014)

  New Revision: 47190

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

  Log:
    * string.c (setup_fake_str): fake strings should not set class by
      RBASIC_SET_CLASS() because it insert write barriers to fake
      (non-RVALUE) structure.
      It can cause unexpected behaviour.
      Ruby 2.1 also have a same problem (setup_fake_str() in parse.y).
    * symbol.c (setup_fake_str): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/symbol.c


More information about the ruby-cvs mailing list