Skip to content

Commit

Permalink
juliac: remove call to jl_set_newly_inferred (#56222)
Browse files Browse the repository at this point in the history
Moved in #56186
  • Loading branch information
fredrikekre authored Oct 18, 2024
1 parent e33c6a8 commit 6317e02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion contrib/juliac-buildscript.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ task.rngState3 = 0x3a77f7189200c20b
task.rngState4 = 0x5502376d099035ae
uuid_tuple = (UInt64(0), UInt64(0))
ccall(:jl_set_module_uuid, Cvoid, (Any, NTuple{2, UInt64}), Base.__toplevel__, uuid_tuple)
ccall(:jl_set_newly_inferred, Cvoid, (Any,), Core.Compiler.newly_inferred)

# Patch methods in Core and Base

Expand Down
10 changes: 6 additions & 4 deletions src/precompile_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,12 @@ static void *jl_precompile_worklist(jl_array_t *worklist, jl_array_t *extext_met
}
}
}
n = jl_array_nrows(new_ext_cis);
for (i = 0; i < n; i++) {
jl_code_instance_t *ci = (jl_code_instance_t*)jl_array_ptr_ref(new_ext_cis, i);
precompile_enq_specialization_(ci->def, m);
if (new_ext_cis) {
n = jl_array_nrows(new_ext_cis);
for (i = 0; i < n; i++) {
jl_code_instance_t *ci = (jl_code_instance_t*)jl_array_ptr_ref(new_ext_cis, i);
precompile_enq_specialization_(ci->def, m);
}
}
void *native_code = jl_precompile_(m, 1);
JL_GC_POP();
Expand Down

0 comments on commit 6317e02

Please sign in to comment.