[ruby-cvs:69985] naruse:r62852 (ruby_2_5): merge revision(s) 62668: [Backport #14578]

naruse at ruby-lang.org naruse at ruby-lang.org
Tue Mar 20 11:08:27 JST 2018


naruse	2018-03-20 11:08:27 +0900 (Tue, 20 Mar 2018)

  New Revision: 62852

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

  Log:
    merge revision(s) 62668: [Backport #14578]
    
    thread.c: reset waitq of keeping mutexes in child
    
    We must not maintain references to threads in the parent process
    in any mutexes held by the child process.
    
    * thread_sync.c (rb_mutex_cleanup_keeping_mutexes): new function
    * thread.c (rb_thread_atfork): cleanup keeping mutexes
      [ruby-core:85940] [Bug #14578]
    
    Fixes: r58604 (commit 3586c9e0876e784767a1c1adba9ebc2499fa0ec2)
           ("reduce rb_mutex_t size from 160 to 80 bytes on 64-bit")

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/test/ruby/test_thread.rb
    branches/ruby_2_5/thread.c
    branches/ruby_2_5/thread_sync.c
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list