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 27e4a5e commit 1450c23
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 @@ -628,7 +628,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 1450c23

Please sign in to comment.