[ruby-cvs:59303] kosaki:r52152 (trunk): * io.c (fptr_finalize): don't release gvl if fptr is not writable.

kosaki at ruby-lang.org kosaki at ruby-lang.org
Sun Oct 18 08:31:25 JST 2015


kosaki	2015-10-18 08:31:23 +0900 (Sun, 18 Oct 2015)

  New Revision: 52152

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

  Log:
    * io.c (fptr_finalize): don't release gvl if fptr is not writable.
      writable fd may block on close(2) when it's on NFS. But readonly
      fd doesn't. [Bug #11559]
      result: make benchmark OPTS="-p bm_require_t -e ruby-trunk -e ruby-2.2.2"
        build-ruby:             0.171
        ruby 2.3.0dev(r52151):  0.659
        ruby 2.2.0p95 (r50295): 0.834

  Modified files:
    trunk/ChangeLog
    trunk/io.c


More information about the ruby-cvs mailing list