[ruby-cvs:72215] usa:r65115 (ruby_2_4): merge revision(s) 63711, 64398: [Backport #14841]

usa at ruby-lang.org usa at ruby-lang.org
Wed Oct 17 17:40:36 JST 2018

usa	2018-10-17 17:40:36 +0900 (Wed, 17 Oct 2018)

  New Revision: 65115


    merge revision(s) 63711,64398: [Backport #14841]
    thread_sync.c (rb_mutex_lock): fix deadlock
    * thread_sync.c (rb_mutex_lock): fix deadlock
      [ruby-core:87467] [Bug #14841]
    thread_sync.c (rb_mutex_lock): acquire lock before being killed
    We (the thread acquiring the mutex) need to acquire the mutex
    before being killed to work with ConditionVariable#wait.
    Thus we reinstate the acquire-immediately-after-sleeping logic
    from pre-r63711 while still retaining the
    acquire-after-checking-for-interrupts logic from r63711.
    This regression was introduced in
    commit 501069b8a4013f2e3fdde35c50e9527ef0061963 (r63711)
    ("thread_sync.c (rb_mutex_lock): fix deadlock") for
    [Bug #14841]
    [ruby-core:88503] [Bug #14999] [Bug #14841]

  Modified directories:
  Modified files:

More information about the ruby-cvs mailing list