diff options
author | Samuel Williams <[email protected]> | 2020-06-04 22:37:09 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2020-06-05 11:40:59 +1200 |
commit | 4bff8e84232594ecb9914e2a8437b7c40a63b799 (patch) | |
tree | 2fd4b626b1a982d2f901b4dafdd3544b10191902 /cont.c | |
parent | e262452b562da16ad9b25d718a8cf817305c1645 (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
Diffstat (limited to 'cont.c')
-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 |