Skip to content

Commit fc3e4a5

Browse files
rbehrendsfingolfin
authored andcommitted
Fix task scanner to use new Julia API call
1 parent 8af543f commit fc3e4a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/julia_gc.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,11 @@ void GapRootScanner(int full)
529529

530530
void GapTaskScanner(jl_task_t * task, int root_task)
531531
{
532-
if (task->stkbuf) {
533-
TryMarkRange(task->stkbuf, (char *)task->stkbuf + task->bufsz);
532+
size_t size;
533+
int tid;
534+
void * stack = jl_task_stack_buffer(task, &size, &tid);
535+
if (stack && tid < 0) {
536+
TryMarkRange(stack, (char *)stack + size);
534537
}
535538
}
536539

0 commit comments

Comments
 (0)