[前][次][番号順一覧][スレッド一覧]

ruby-changes:61566

From: Samuel <ko1@a...>
Date: Fri, 5 Jun 2020 08:41:15 +0900 (JST)
Subject: [ruby-changes:61566] 4bff8e8423 (master): Ensure that the head of the vacancy list is correctly inserted into the linked list.

https://git.ruby-lang.org/ruby.git/commit/?id=4bff8e8423

From 4bff8e84232594ecb9914e2a8437b7c40a63b799 Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
Date: Thu, 4 Jun 2020 22:37:09 +1200
Subject: 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.

diff --git a/cont.c b/cont.c
index 37a9dc8..139c12c 100644
--- a/cont.c
+++ b/cont.c
@@ -336,6 +336,7 @@ fiber_pool_vacancy_push(struct fiber_pool_vacancy * vacancy, struct fiber_pool_v https://github.com/ruby/ruby/blob/trunk/cont.c#L336
 #ifdef FIBER_POOL_ALLOCATION_FREE
     if (head) {
         head->previous = vacancy;
+        vacancy->previous = NULL;
     }
 #endif
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]