[ruby-cvs:71559] normal:r64467 (trunk): thread_pthread.c: reset timeslice delay when uncontended

normal at ruby-lang.org normal at ruby-lang.org
Sun Aug 19 09:01:08 JST 2018

normal	2018-08-19 09:01:08 +0900 (Sun, 19 Aug 2018)

  New Revision: 64467


    thread_pthread.c: reset timeslice delay when uncontended
    This matches the behavior of old timer thread more closely
    and seems to fix [Bug #14999] when limited to a single CPU.
    I cannot reproduce the error on a multi-core system unless
    I use schedtool to force affinity to a single CPU:
    schedtool -a 0x01 -e make test-spec \
    MSPECOPT='-R1000 spec/ruby/library/conditionvariable/wait_spec.rb'
    While it may be good enough to pass the spec, I don't have
    huge degree of confidence in the interrupt handling robustness
    under extremely heavy load (these may be ancient bugs, though).

  Modified files:

More information about the ruby-cvs mailing list