summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-04-14 16:52:08 +0900
committerKoichi Sasada <ko1@atdot.net>2022-04-14 21:22:47 +0900
commit9b8ce6d34c49a869ee3fcbd87923a6414396738f (patch)
treefe26c71fb0d5a63f33d8fbe3bf3e4db5a55df038
parent5397dd2e76952c5afc0d838f1d0bd53bcb0c5258 (diff)
fix to use `node.gvl` instead of `node.ubf`
The last parameter of `ccan_list_top()` is to acquire the pointer of the top of element, so `node.ubf` is no problem. But this context it accesses gvl list, so `node.gvl` is better.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5798
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 60853cd0a3..10e42e97c8 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -331,7 +331,7 @@ gvl_release_common(rb_global_vm_lock_t *gvl)
{
native_thread_data_t *next;
gvl->owner = 0;
- next = ccan_list_top(&gvl->waitq, native_thread_data_t, node.ubf);
+ next = ccan_list_top(&gvl->waitq, native_thread_data_t, node.gvl);
if (next) rb_native_cond_signal(&next->cond.gvlq);
return next;