aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-23 16:55:36 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-23 16:55:36 +0900
commite052d0716325bcb499c57b1de0c6e3eb9effb299 (patch)
treeb13e33d2d73b0d7fb88cbb6747fd6d931c17b0e3 /thread.c
parent81a8d1cf09d59f0d69143d7896545f849f580a4e (diff)
downloadruby-e052d0716325bcb499c57b1de0c6e3eb9effb299.tar.gz
Revert "need to clear blocking cnt at fork (child process)"
This reverts commit 0dd4896175f95c4c2a26d91a97b9fcb9a74cc0c6. It breaks the tests on RUBY_DEBUG=1.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 354ddd860f..a7cd6e4c28 100644
--- a/thread.c
+++ b/thread.c
@@ -4743,10 +4743,9 @@ rb_thread_atfork_internal(rb_thread_t *th, void (*atfork)(rb_thread_t *, const r
// threads
vm->ractor.cnt = 0;
- vm->ractor.blocking_cnt = 0;
rb_ractor_living_threads_init(th->ractor);
rb_ractor_living_threads_insert(th->ractor, th);
- rb_vm_ractor_blocking_cnt_dec(th->vm, th->ractor, __FILE__, __LINE__);
+
/* may be held by MJIT threads in parent */
rb_native_mutex_initialize(&vm->waitpid_lock);