[ruby-cvs:54400] ko1:r47252 (trunk): * string.c (rb_fstring, fstr_update_callback): simply delete garbage

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Aug 22 20:16:58 JST 2014


ko1	2014-08-22 20:16:56 +0900 (Fri, 22 Aug 2014)

  New Revision: 47252

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

  Log:
    * string.c (rb_fstring, fstr_update_callback): simply delete garbage
      key first.
      Garbage keys can be swept by lazy sweeping invoked by creating new
      fstring.  So that simply do:
      (1) delete garbage key and return `fstr_update_callback' immediately
      (2) try again `fstr_update_callback()' to create a new fstr.
      This bug can be cause memory corruption, reported by
      http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20140821T220302Z.fail.html.gz

  Modified files:
    trunk/ChangeLog
    trunk/string.c


More information about the ruby-cvs mailing list