diff --git a/thread_pthread.c b/thread_pthread.c index 1bbe25f70c82dc..f20c7ea6109cee 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1084,6 +1084,7 @@ rb_thread_sched_init(struct rb_thread_sched *sched) { rb_native_mutex_initialize(&sched->lock_); ccan_list_head_init(&sched->readyq); + sched->readyq_cnt = 0; } static void