mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merge revision(s) 2a83650b0f
: [Backport #15852]
Destroy VM-wise locks before freeing [Bug #15852] --- thread.c | 7 ------- vm.c | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-)
This commit is contained in:
parent
05fa06a4ed
commit
0074ea2d83
3 changed files with 3 additions and 8 deletions
7
thread.c
7
thread.c
|
@ -424,13 +424,6 @@ rb_vm_gvl_destroy(rb_global_vm_lock_t *gvl)
|
|||
{
|
||||
gvl_release(gvl);
|
||||
gvl_destroy(gvl);
|
||||
|
||||
if (0) {
|
||||
rb_vm_t *vm = GET_VM();
|
||||
/* may be held by running threads */
|
||||
rb_native_mutex_destroy(&vm->waitpid_lock);
|
||||
rb_native_mutex_destroy(&vm->workqueue_lock);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue