Skip to content

Commit

Permalink
julia_gc: replace jl_task_stack_buffer by jl_active_task_stack (#5724)
Browse files Browse the repository at this point in the history
The former has been deprecated since 2020.
  • Loading branch information
fingolfin authored May 23, 2024
1 parent e653840 commit 7e07b99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,13 +564,12 @@ static void GapRootScanner(int full)
{
jl_ptls_t ptls = jl_get_ptls_states();
jl_task_t * task = (jl_task_t *)jl_get_current_task();
size_t size;
int tid; // unused

// We figure out the end of the stack from the current task. While
// `stack_bottom` is passed to InitBags(), we cannot use that if
// current_task != root_task.
char * stackend = (char *)jl_task_stack_buffer(task, &size, &tid);
stackend += size;
char *dummy, *stackend;
jl_active_task_stack(task, &dummy, &dummy, &dummy, &stackend);

#if !defined(USE_GAP_INSIDE_JULIA)
// The following test overrides the stackend if the following two
Expand Down

0 comments on commit 7e07b99

Please sign in to comment.