[ruby-cvs:71528] normal:r64436 (trunk): thread_sync.c (do_sleep): avoid thread-switch/interrupt check

normal at ruby-lang.org normal at ruby-lang.org
Sat Aug 18 13:24:31 JST 2018


normal	2018-08-18 13:24:31 +0900 (Sat, 18 Aug 2018)

  New Revision: 64436

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

  Log:
    thread_sync.c (do_sleep): avoid thread-switch/interrupt check
    
    Calling rb_mutex_sleep directly should avoid
    thread-switching/interrupt checking which can lead to occasional
    failures.
    
    Unfortunately, this means overriding Mutex#sleep is no longer
    supported.  Will let this commit run for a bit see if CI failures
    from ConditionVariable specs continue...
    
    cf. https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20180817T213003Z.fail.html.gz
    
    [ruby-core:88524] [Bug #14999]

  Modified files:
    trunk/thread_sync.c


More information about the ruby-cvs mailing list