1
0
Fork 0
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:
Samuel Williams 2020-06-04 22:37:09 +12:00
parent e262452b56
commit 4bff8e8423
Notes: git 2020-06-05 08:41:23 +09:00

1
cont.c
View file

@ -336,6 +336,7 @@ fiber_pool_vacancy_push(struct fiber_pool_vacancy * vacancy, struct fiber_pool_v
#ifdef FIBER_POOL_ALLOCATION_FREE #ifdef FIBER_POOL_ALLOCATION_FREE
if (head) { if (head) {
head->previous = vacancy; head->previous = vacancy;
vacancy->previous = NULL;
} }
#endif #endif