Skip to content

Commit

Permalink
Filterout methods that are unreachable from native AbsInt
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and maleadt committed Jul 17, 2024
1 parent 7c9a465 commit 900a283
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/precompile_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,12 @@ static void *jl_precompile_(jl_array_t *m, int external_linkage)
size_t max_world = ~(size_t)0;
if (mi != jl_atomic_load_relaxed(&mi->def.method->unspecialized) && !jl_isa_compileable_sig((jl_tupletype_t*)mi->specTypes, mi->sparam_vals, mi->def.method))
mi = jl_get_specialization1((jl_tupletype_t*)mi->specTypes, jl_atomic_load_acquire(&jl_world_counter), &min_world, &max_world, 0);
if (mi)
jl_array_ptr_1d_push(m2, (jl_value_t*)mi);
if (mi) {
jl_value_t *ci = jl_rettype_inferred_addr(mi, min_world, max_world);
if (ci != jl_nothing)
jl_array_ptr_1d_push(m2, (jl_value_t*)mi);
}

}
else {
assert(jl_is_simplevector(item));
Expand Down

0 comments on commit 900a283

Please sign in to comment.