Skip to content

Commit eca6c31

Browse files
vtjnashKristofferC
authored andcommitted
bootstrapping: optimize compiler during warmup phase
(cherry picked from commit 4a048d3)
1 parent 4dd47a7 commit eca6c31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ void jl_foreach_reachable_mtable(void (*visit)(jl_methtable_t *mt, void *env), v
477477
}
478478
else {
479479
foreach_mtable_in_module(jl_main_module, visit, env, &visited);
480+
foreach_mtable_in_module(jl_core_module, visit, env, &visited);
480481
}
481482
JL_GC_POP();
482483
}
@@ -501,7 +502,7 @@ JL_DLLEXPORT void jl_set_typeinf_func(jl_value_t *f)
501502
jl_typeinf_func = (jl_function_t*)f;
502503
jl_typeinf_world = jl_get_tls_world_age();
503504
++jl_world_counter; // make type-inference the only thing in this world
504-
if (0 && newfunc) {
505+
if (newfunc) {
505506
// give type inference a chance to see all of these
506507
// TODO: also reinfer if max_world != ~(size_t)0
507508
jl_array_t *unspec = jl_alloc_vec_any(0);

0 commit comments

Comments
 (0)