Skip to content

Commit

Permalink
bootstrapping: optimize compiler during warmup phase
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and LilithHafner committed Mar 8, 2022
1 parent 273c12d commit 3136dd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
Expand Down

0 comments on commit 3136dd1

Please sign in to comment.