[ruby-cvs:71257] normal:r64165 (trunk): thread_pthread.c (gvl_acquire_common): persist timeout across calls

normal at ruby-lang.org normal at ruby-lang.org
Fri Aug 3 06:13:50 JST 2018


normal	2018-08-03 06:13:50 +0900 (Fri, 03 Aug 2018)

  New Revision: 64165

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

  Log:
    thread_pthread.c (gvl_acquire_common): persist timeout across calls
    
    Reuse old expiration time if the previous native_cond_timedwait
    did not return ETIMEDOUT.  This should improve timeslice
    accuracy for Timeout.timeout rubyspec without causing excessive
    wakeups on uncontended GVL acquisition.
    
    cf. http://ci.rvm.jp/results/trunk-gc-asserts@silicon-docker/1180486
        http://ci.rvm.jp/results/trunk-gc-asserts@silicon-docker/1184623

  Modified files:
    trunk/thread_pthread.c


More information about the ruby-cvs mailing list