File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -775,13 +775,13 @@ JL_DLLEXPORT void jl_init_(jl_image_buf_t sysimage)
775
775
// enable before creating the root task so it gets timings too.
776
776
jl_atomic_fetch_add (& jl_task_metrics_enabled , 1 );
777
777
}
778
+ // warning: this changes `jl_current_task`, so be careful not to call that from this function
779
+ jl_task_t * ct = jl_init_root_task (ptls , stack_lo , stack_hi );
778
780
// Initialize constant objects
779
781
jl_nothing = jl_gc_permobj (0 , jl_nothing_type , 0 );
780
782
jl_set_typetagof (jl_nothing , jl_nothing_tag , GC_OLD_MARKED );
781
783
jl_init_box_caches ();
782
784
jl_init_common_symbols ();
783
- // warning: this changes `jl_current_task`, so be careful not to call that from this function
784
- jl_task_t * ct = jl_init_root_task (ptls , stack_lo , stack_hi );
785
785
#pragma GCC diagnostic pop
786
786
JL_GC_PROMISE_ROOTED (ct );
787
787
_finish_jl_init_ (sysimage , ptls , ct );
You can’t perform that action at this time.
0 commit comments