diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-19 11:40:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-09 20:11:34 +0900 |
commit | 2a83650b0fd25719fb6c03bfec7bd895734d3ceb (patch) | |
tree | 502ebbfaf3594f318f543478e2cc1fe21c0cde45 /thread.c | |
parent | 7110795f37d2b91bb41458c351b5a206424d6ec4 (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.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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 |