Skip to content

Commit

Permalink
Zero-out bootstrap_task
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 13, 2021
1 parent 6c4c259 commit e259cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ void _julia_init(JL_IMAGE_SEARCH rel)
// we need the `Task` type itself. We use stack-allocated "raw" `jl_task_t` struct to
// workaround this chicken-and-egg problem. Note that this relies on GC to be turned
// off just above as GC fails because we don't/can't allocate the type tag.
jl_task_t bootstrap_task;
bootstrap_task.gcstack = NULL;
jl_task_t bootstrap_task = {0};
assert(bootstrap_task.gcstack == NULL);
jl_current_task = &bootstrap_task;

jl_resolve_sysimg_location(rel);
Expand Down

0 comments on commit e259cc0

Please sign in to comment.