[ruby-cvs:54547] usa:r47399 (ruby_2_0_0): merge revision(s) 46408, 46410, 46413, 46414, 46424, 46436, 46437: [Backport #9934]

usa at ruby-lang.org usa at ruby-lang.org
Fri Sep 5 13:23:39 JST 2014


usa	2014-09-05 13:23:37 +0900 (Fri, 05 Sep 2014)

  New Revision: 47399

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

  Log:
    merge revision(s) 46408,46410,46413,46414,46424,46436,46437: [Backport #9934]
    
    string.c: shrink too big buffer
    
    * string.c (rb_str_resize): shrink the buffer even if new length
      is same but it is enough smaller than the capacity.
    * file.c (expand_path): shrink expanded path which no longer needs
      rooms to append.  [ruby-core:63114] [Bug #9934]
    
    * string.c (rb_str_resize): should consider the capacity instead
      of the old length, as pointed out by nagachika.
    
    * string.c (rb_str_resize): update capa only when buffer get
      reallocated.
      http://d.hatena.ne.jp/nagachika/20140613/ruby_trunk_changes_46413_46420#r46413

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/file.c
    branches/ruby_2_0_0/string.c
    branches/ruby_2_0_0/test/ruby/test_file_exhaustive.rb
    branches/ruby_2_0_0/version.h


More information about the ruby-cvs mailing list