summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-19 11:40:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-09 20:11:34 +0900
commit2a83650b0fd25719fb6c03bfec7bd895734d3ceb (patch)
tree502ebbfaf3594f318f543478e2cc1fe21c0cde45 /thread.c
parent7110795f37d2b91bb41458c351b5a206424d6ec4 (diff)
Destroy VM-wise locks before freeing [Bug #15852]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4249
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/thread.c b/thread.c
index f2dd417297..2f5e279e52 100644
--- a/thread.c
+++ b/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