From a3bb9f8575d1f5056fa0f71f772ed9d9f9de0885 Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Wed, 17 Jun 2020 13:21:47 +0200 Subject: [PATCH] Fix the logic for scanning tasks in the Julia GC. This removes an unnecessary (and wrong) test that intended to avoid repeated scanning of the main thread stack, but instead skipped scanning of all root stacks. --- src/julia_gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/julia_gc.c b/src/julia_gc.c index 9c5c1ec92e..1404a86963 100644 --- a/src/julia_gc.c +++ b/src/julia_gc.c @@ -646,7 +646,7 @@ static void GapTaskScanner(jl_task_t * task, int root_task) if (tag->bits.gc & 2) rescan = 0; } - if (stack && tid < 0) { + if (stack) { if (task->copy_stack) { // We know which part of the task stack is actually used, // so we shorten the range we have to scan.