[ruby-cvs:68455] nobu:r61274 (trunk): thread.c: fix deadlock

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 15 16:27:04 JST 2017


nobu	2017-12-15 16:27:04 +0900 (Fri, 15 Dec 2017)

  New Revision: 61274

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

  Log:
    thread.c: fix deadlock
    
    * thread.c (thread_join_sleep): the target thread may exit during
      `RUBY_VM_CHECK_INTS_BLOCKING`, but `sleep_forever` does not
      consider the condition change to wait.
      [ruby-core:84248] [Bug #14181]

  Modified files:
    trunk/test/ruby/test_thread.rb
    trunk/thread.c


More information about the ruby-cvs mailing list