diff options
author | Koichi Sasada <[email protected]> | 2022-04-14 16:52:08 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2022-04-14 21:22:47 +0900 |
commit | 9b8ce6d34c49a869ee3fcbd87923a6414396738f (patch) | |
tree | fe26c71fb0d5a63f33d8fbe3bf3e4db5a55df038 /thread_pthread.c | |
parent | 5397dd2e76952c5afc0d838f1d0bd53bcb0c5258 (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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
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; |