summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-06-04 22:37:09 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-06-05 11:40:59 +1200
commit4bff8e84232594ecb9914e2a8437b7c40a63b799 (patch)
tree2fd4b626b1a982d2f901b4dafdd3544b10191902
parente262452b562da16ad9b25d718a8cf817305c1645 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3182
-rw-r--r--cont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 37a9dc8adf..139c12c693 100644
--- a/cont.c
+++ b/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