[ruby-cvs:51006] nobu:r43862 (trunk): string.c: fix memsize of frozen shared string

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Nov 27 02:27:02 JST 2013


nobu	2013-11-27 02:27:01 +0900 (Wed, 27 Nov 2013)

  New Revision: 43862

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

  Log:
    string.c: fix memsize of frozen shared string
    
    * string.c (str_new4): copy the original capacity so that memsize of
      frozen shared string returns correct size.

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/test/objspace/test_objspace.rb


More information about the ruby-cvs mailing list