[ruby-cvs:67262] normal:r60081 (trunk): file.c: remove unnecessary volatile use

normal at ruby-lang.org normal at ruby-lang.org
Sun Oct 1 10:44:47 JST 2017


normal	2017-10-01 10:44:47 +0900 (Sun, 01 Oct 2017)

  New Revision: 60081

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

  Log:
    file.c: remove unnecessary volatile use
    
    For apply2files, all callers use the `path' VALUE for
    generating exceptions, so there is no need to guard it.
    In realpath_rec, RB_GC_GUARD is already used on link_orig.
    
    In rb_check_realpath_internal, RB_GC_GUARD is necessary and
    preferable (see Appendix E. of doc/extension.rdoc)
    
    * file.c (apply2files): remove unnecessary volatile
      (realpath_rec): ditto
      (rb_check_realpath_internal): ditto, and add RB_GC_GUARD

  Modified files:
    trunk/file.c


More information about the ruby-cvs mailing list