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:
parent
5397dd2e76
commit
9b8ce6d34c
Notes:
git
2022-04-14 21:23:07 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue