[ruby-cvs:71490] normal:r64398 (trunk): thread_sync.c (rb_mutex_lock): acquire lock before being killed

normal at ruby-lang.org normal at ruby-lang.org
Fri Aug 17 04:59:21 JST 2018

normal	2018-08-17 04:59:21 +0900 (Fri, 17 Aug 2018)

  New Revision: 64398


    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 files:

More information about the ruby-cvs mailing list