Skip to content

Commit

Permalink
Fix task scanner to use new Julia API call
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehrends authored and fingolfin committed Oct 8, 2018
1 parent 8af543f commit fc3e4a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,11 @@ void GapRootScanner(int full)

void GapTaskScanner(jl_task_t * task, int root_task)
{
if (task->stkbuf) {
TryMarkRange(task->stkbuf, (char *)task->stkbuf + task->bufsz);
size_t size;
int tid;
void * stack = jl_task_stack_buffer(task, &size, &tid);
if (stack && tid < 0) {
TryMarkRange(stack, (char *)stack + size);
}
}

Expand Down

0 comments on commit fc3e4a5

Please sign in to comment.