[ruby-cvs:71541] normal:r64449 (trunk): thread.c (sleep_*): check interrupt before changing th->status

normal at ruby-lang.org normal at ruby-lang.org
Sun Aug 19 03:29:29 JST 2018


normal	2018-08-19 03:29:28 +0900 (Sun, 19 Aug 2018)

  New Revision: 64449

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

  Log:
    thread.c (sleep_*): check interrupt before changing th->status
    
    Having threads switch before we sleep can cause applications
    to misread the state of the thread.  Now, we are consistent
    with blocking_region_begin behavior and change th->status
    AFTER checking interrupts.
    
    Maybe this can fix [Bug #15002]

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list