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 committed Jun 17, 2020
1 parent 816a3f5 commit a3bb9f8
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 a3bb9f8

Please sign in to comment.