summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2021-04-04 23:50:56 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2021-04-04 23:50:56 +0000
commit5f83e778cc6cefe5982f73e3296286472b84a147 (patch)
treef99fdf49769855f639453a425da3bfd082d89732
parentbde8e4e6f89c579064f0af5a5d922444797478bc (diff)
merge revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb: [Backport #15852]
Destroy VM-wise locks before freeing [Bug #15852] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--version.h2
-rw-r--r--vm.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/version.h b/version.h
index a9688290f1..5e65375fb1 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.6.7"
#define RUBY_RELEASE_DATE "2021-04-05"
-#define RUBY_PATCHLEVEL 189
+#define RUBY_PATCHLEVEL 190
#define RUBY_RELEASE_YEAR 2021
#define RUBY_RELEASE_MONTH 4
diff --git a/vm.c b/vm.c
index 6d54a81719..0954aa79af 100644
--- a/vm.c
+++ b/vm.c
@@ -2292,6 +2292,8 @@ ruby_vm_destruct(rb_vm_t *vm)
if (objspace) {
rb_objspace_free(objspace);
}
+ rb_native_mutex_destroy(&vm->waitpid_lock);
+ rb_native_mutex_destroy(&vm->workqueue_lock);
/* after freeing objspace, you *can't* use ruby_xfree() */
ruby_mimfree(vm);
ruby_current_vm_ptr = NULL;