[ruby-cvs:69869] k0kubun:r62714 (trunk): mjit.c: keep mutex unlocked on destroy

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sat Mar 10 16:05:32 JST 2018


k0kubun	2018-03-10 16:05:32 +0900 (Sat, 10 Mar 2018)

  New Revision: 62714

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

  Log:
    mjit.c: keep mutex unlocked on destroy
    
    `mjit_finish` may destroy mutex even while it's still locked by
    `worker` by race condition. That would result in the following error:
    [BUG] pthread_mutex_destroy: Device or resource busy (EBUSY)
    
    Actually I couldn't get a core dump for it and reproduce it multiple
    times. So I'm not sure this fixes the issue which I faced or not.

  Modified files:
    trunk/mjit.c


More information about the ruby-cvs mailing list