[ruby-cvs:68026] normal:r60845 (trunk): File.readlink and rb_readlink releases GVL

normal at ruby-lang.org normal at ruby-lang.org
Sun Nov 19 14:03:17 JST 2017


normal	2017-11-19 14:03:17 +0900 (Sun, 19 Nov 2017)

  New Revision: 60845

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

  Log:
    File.readlink and rb_readlink releases GVL
    
    The `readlink' can stall on slow filesystems like `open' and
    `read' syscalls.  Release the GVL and let the rest of the VM
    function while `readlink' runs.
    
    * file.c (nogvl_readlink): new function
      (readlink_without_gvl): ditto
      (rb_readlink): use readlink_without_gvl

  Modified files:
    trunk/file.c


More information about the ruby-cvs mailing list