Skip to content

Commit 1fea0c3

Browse files
authored
Call initialize_collection after _finish_julia_init (#39)
1 parent 75ac661 commit 1fea0c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/init.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -798,10 +798,6 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
798798

799799
jl_ptls_t ptls = jl_init_threadtls(0);
800800

801-
#ifdef MMTK_GC
802-
mmtk_initialize_collection((void *)ptls);
803-
#endif
804-
805801
#pragma GCC diagnostic push
806802
#if defined(_COMPILER_GCC_) && __GNUC__ >= 12
807803
#pragma GCC diagnostic ignored "-Wdangling-pointer"
@@ -811,6 +807,10 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
811807
#pragma GCC diagnostic pop
812808
JL_GC_PROMISE_ROOTED(ct);
813809
_finish_julia_init(rel, ptls, ct);
810+
811+
#ifdef MMTK_GC
812+
mmtk_initialize_collection((void *)ptls);
813+
#endif
814814
}
815815

816816
void jl_init_heartbeat(void);

0 commit comments

Comments
 (0)