[ruby-cvs:54812] normal:r47664 (trunk): file.c: clear tmp buffer on failures

normal at ruby-lang.org normal at ruby-lang.org
Sun Sep 21 12:26:48 JST 2014


normal	2014-09-21 12:26:47 +0900 (Sun, 21 Sep 2014)

  New Revision: 47664

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

  Log:
    file.c: clear tmp buffer on failures
    
    Reduces GC malloc pressure (MAXPATHLEN is 4096 on my system),
    rb_find_file_safe hits this path at least twice every time
    ruby starts.
    
    * file.c (rb_find_file_ext_safe): clear tmp buffer on failure
      (rb_find_file_safe): ditto

  Modified files:
    trunk/ChangeLog
    trunk/file.c


More information about the ruby-cvs mailing list