1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Koichi Sasada 2022-04-14 16:52:08 +09:00
parent 5397dd2e76
commit 9b8ce6d34c
Notes: git 2022-04-14 21:23:07 +09:00

View file

@ -331,7 +331,7 @@ gvl_release_common(rb_global_vm_lock_t *gvl)
{ {
native_thread_data_t *next; native_thread_data_t *next;
gvl->owner = 0; 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); if (next) rb_native_cond_signal(&next->cond.gvlq);
return next; return next;