[ruby-cvs:49985] charliesome:r42843 (trunk): * include/ruby/ruby.h: add RSTRING_FSTR flag

charliesome at ruby-lang.org charliesome at ruby-lang.org
Thu Sep 5 13:49:18 JST 2013


charliesome	2013-09-05 13:49:16 +0900 (Thu, 05 Sep 2013)

  New Revision: 42843

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

  Log:
    * include/ruby/ruby.h: add RSTRING_FSTR flag
    * internal.h: add rb_fstring() prototype
    * parse.y (str_suffix_gen): deduplicate frozen string literals
    * string.c (rb_fstring): deduplicate frozen string literals
    * string.c (rb_str_free): delete fstrings from frozen_strings table when
      they are GC'd
    * string.c (Init_String): initialize frozen_strings table
    * test/ruby/test_string.rb: test frozen strings are deduplicated

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
    trunk/internal.h
    trunk/parse.y
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list