Skip to content

Commit 201c18c

Browse files
committed
Initializer timing sub-system earlier
1 parent abcfb3b commit 201c18c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ static void julia_init(jl_image_buf_t sysimage)
834834
// initialize many things, in no particular order
835835
// but generally running from simple platform things to optional
836836
// configuration features
837-
jl_init_timing();
837+
838838
// Make sure we finalize the tls callback before starting any threads.
839839
(void)jl_get_pgcstack();
840840

@@ -946,6 +946,7 @@ static void julia_init(jl_image_buf_t sysimage)
946946
// This function is responsible for loading the image and initializing paths in jl_options
947947
JL_DLLEXPORT void jl_load_image_and_init(JL_IMAGE_SEARCH rel, const char* julia_bindir, void *handle) {
948948
libsupport_init();
949+
jl_init_timing();
949950

950951
jl_resolve_sysimg_location(rel, julia_bindir);
951952

0 commit comments

Comments
 (0)