From eca6c310946fb1364d19d6b338ae77f86e0a4793 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Wed, 8 Sep 2021 19:12:54 -0400 Subject: [PATCH] bootstrapping: optimize compiler during warmup phase (cherry picked from commit 4a048d31c1da5dfada560d1189a2d4623a2bf022) --- src/gf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gf.c b/src/gf.c index 5282d31cf48d7..3f742af4ca1f6 100644 --- a/src/gf.c +++ b/src/gf.c @@ -477,6 +477,7 @@ void jl_foreach_reachable_mtable(void (*visit)(jl_methtable_t *mt, void *env), v } else { foreach_mtable_in_module(jl_main_module, visit, env, &visited); + foreach_mtable_in_module(jl_core_module, visit, env, &visited); } JL_GC_POP(); } @@ -501,7 +502,7 @@ JL_DLLEXPORT void jl_set_typeinf_func(jl_value_t *f) jl_typeinf_func = (jl_function_t*)f; jl_typeinf_world = jl_get_tls_world_age(); ++jl_world_counter; // make type-inference the only thing in this world - if (0 && newfunc) { + if (newfunc) { // give type inference a chance to see all of these // TODO: also reinfer if max_world != ~(size_t)0 jl_array_t *unspec = jl_alloc_vec_any(0);