Skip to content

Commit

Permalink
Fix the logic for scanning tasks in the Julia GC.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rbehrends authored and fingolfin committed Jun 17, 2020
1 parent 946cde4 commit 3e6229f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3e6229f

Please sign in to comment.