Skip to content

Commit

Permalink
Revert "need to clear blocking cnt at fork (child process)"
Browse files Browse the repository at this point in the history
This reverts commit 0dd4896.

It breaks the tests on RUBY_DEBUG=1.
  • Loading branch information
ko1 committed Dec 23, 2020
1 parent 81a8d1c commit e052d07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions thread.c
Expand Up @@ -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);
Expand Down

0 comments on commit e052d07

Please sign in to comment.