[ruby-cvs:65678] normal:r58506 (trunk): load.c: remove a redundant rb_str_freeze call

normal at ruby-lang.org normal at ruby-lang.org
Sat Apr 29 19:51:00 JST 2017


normal	2017-04-29 19:50:59 +0900 (Sat, 29 Apr 2017)

  New Revision: 58506

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

  Log:
    load.c: remove a redundant rb_str_freeze call
    
    rb_file_expand_path_fast already performs the buffer shrinking
    rb_str_freeze does (via expand_path macro in file.c); the
    result of rb_fstring is always frozen, and that rb_fstring
    call is the last use of `expanded_path` in its scope.
    
    load.c (rb_construct_expanded_load_path): remove rb_str_freeze

  Modified files:
    trunk/load.c


More information about the ruby-cvs mailing list