[ruby-cvs:73330] normal:r66230 (trunk): thread_sync.c (mutex_ptr): handle mutexes held by parent threads in children

normal at ruby-lang.org normal at ruby-lang.org
Thu Dec 6 03:58:45 JST 2018


normal	2018-12-06 03:58:45 +0900 (Thu, 06 Dec 2018)

  New Revision: 66230

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

  Log:
    thread_sync.c (mutex_ptr): handle mutexes held by parent threads in children
    
    Mutexes may be held by threads which only exist in the parent
    process, so their waitqueues may be populated with references
    to other dead threads.  We must reset them at fork.
    
    I am a moron for introducing this bug :<
    
    [ruby-core:90312] [Bug #15383]

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


More information about the ruby-cvs mailing list