diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-10 07:05:32 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-10 07:05:32 +0000 |
commit | ad49d256a442372b2ba62e9c0d7a473f28f98d0b (patch) | |
tree | 1c94a02872878e764c6d39133e07af477ec9a03a /bootstraptest/test_gc.rb | |
parent | 76b642f96f4515e3e55d1012301024ff05e99a4f (diff) | |
download | ruby-ad49d256a442372b2ba62e9c0d7a473f28f98d0b.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_gc.rb')
0 files changed, 0 insertions, 0 deletions