summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-23 20:14:20 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-25 15:22:43 +0900
commitaad9fa285398d48b5647f8a36922b8d817a24156 ()
treeb789aa228c8cfe1f3e006cc9156970587aa19514 /thread_pthread.c
parentfc518fe1ff0410f836b01577b8c4f3940404a24b (diff)
Use RB_VM_LOCKING
Notes: Merged: https://.com/ruby/ruby/pull/13439
-rw-r--r--thread_pthread.c7
1 files changed, 2 insertions, 5 deletions
@@ -630,8 +630,7 @@ thread_sched_setup_running_threads(struct rb_thread_sched *sched, rb_ractor_t *c
#endif
thread_sched_unlock(sched, lock_owner);
{
- RB_VM_LOCK_ENTER();
- RB_VM_LOCK_LEAVE();
}
thread_sched_lock(sched, lock_owner);
}
@@ -2283,11 +2282,9 @@ rb_threadptr_remove(rb_thread_t *th)
rb_vm_t *vm = th->vm;
th->sched.finished = false;
- RB_VM_LOCK_ENTER();
- {
ccan_list_add(&vm->ractor.sched.zombie_threads, &th->sched.node.zombie_threads);
}
- RB_VM_LOCK_LEAVE();
}
#endif
}