summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2021-03-20 15:54:03 +0900
committernagachika <nagachika@ruby-lang.org>2021-03-20 15:54:03 +0900
commit755a349a3a66f5731995296fe3bb7d2b1712167f (patch)
treea321b8f26fc2652047d558c4957ee280fbf6db68 /cont.c
parent82bce422ba9e131e62b528854dea69a6e8cc0c04 (diff)
merge revision(s) 4bff8e84232594ecb9914e2a8437b7c40a63b799: [Backport #16814]
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. --- cont.c | 1 + 1 file changed, 1 insertion(+)
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 0c49d34742..7f971a9e9d 100644
--- a/cont.c
+++ b/cont.c
@@ -324,6 +324,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