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.
1 parent 9460689 commit 6f5f685Copy full SHA for 6f5f685
src/init.c
@@ -824,9 +824,6 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
824
825
jl_ptls_t ptls = jl_init_threadtls(0);
826
827
-#ifdef MMTK_GC
828
- mmtk_initialize_collection((void *)ptls);
829
-#endif
830
#pragma GCC diagnostic push
831
#if defined(_COMPILER_GCC_) && __GNUC__ >= 12
832
#pragma GCC diagnostic ignored "-Wdangling-pointer"
@@ -836,6 +833,9 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
836
833
#pragma GCC diagnostic pop
837
834
JL_GC_PROMISE_ROOTED(ct);
838
835
_finish_julia_init(rel, ptls, ct);
+#ifdef MMTK_GC
+ mmtk_initialize_collection((void *)ptls);
+#endif
839
}
840
841
static NOINLINE void _finish_julia_init(JL_IMAGE_SEARCH rel, jl_ptls_t ptls, jl_task_t *ct)
0 commit comments