diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-06-04 22:37:09 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-06-05 11:40:59 +1200 |
commit | 4bff8e84232594ecb9914e2a8437b7c40a63b799 (patch) | |
tree | 2fd4b626b1a982d2f901b4dafdd3544b10191902 | |
parent | e262452b562da16ad9b25d718a8cf817305c1645 (diff) | |
download | ruby-4bff8e84232594ecb9914e2a8437b7c40a63b799.tar.gz |
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.
-rw-r--r-- | cont.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |