mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ensure that the head of the vacancy list is correctly inserted into the linked list.
See <https://bugs.ruby-lang.org/issues/16814> for more details.
This commit is contained in:
parent
e262452b56
commit
4bff8e8423
Notes:
git
2020-06-05 08:41:23 +09:00
1 changed files with 1 additions and 0 deletions
1
cont.c
1
cont.c
|
@ -336,6 +336,7 @@ fiber_pool_vacancy_push(struct fiber_pool_vacancy * vacancy, struct fiber_pool_v
|
|||
#ifdef FIBER_POOL_ALLOCATION_FREE
|
||||
if (head) {
|
||||
head->previous = vacancy;
|
||||
vacancy->previous = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue