Project

General

Profile

« Previous | Next » 

Revision 6b58fd54

Added by Eric Wong over 7 years ago

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e