We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bootstrap_task
1 parent 6c4c259 commit e259cc0Copy full SHA for e259cc0
1 file changed
src/init.c
@@ -737,8 +737,8 @@ void _julia_init(JL_IMAGE_SEARCH rel)
737
// we need the `Task` type itself. We use stack-allocated "raw" `jl_task_t` struct to
738
// workaround this chicken-and-egg problem. Note that this relies on GC to be turned
739
// off just above as GC fails because we don't/can't allocate the type tag.
740
- jl_task_t bootstrap_task;
741
- bootstrap_task.gcstack = NULL;
+ jl_task_t bootstrap_task = {0};
+ assert(bootstrap_task.gcstack == NULL);
742
jl_current_task = &bootstrap_task;
743
744
jl_resolve_sysimg_location(rel);
0 commit comments