Skip to content

Commit 362086a

Browse files
fredrikekreKristofferC
authored andcommitted
juliac: remove call to jl_set_newly_inferred (#56222)
Moved in #56186
1 parent 0d1a2da commit 362086a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

contrib/juliac-buildscript.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ task.rngState3 = 0x3a77f7189200c20b
1717
task.rngState4 = 0x5502376d099035ae
1818
uuid_tuple = (UInt64(0), UInt64(0))
1919
ccall(:jl_set_module_uuid, Cvoid, (Any, NTuple{2, UInt64}), Base.__toplevel__, uuid_tuple)
20-
ccall(:jl_set_newly_inferred, Cvoid, (Any,), Core.Compiler.newly_inferred)
2120

2221
# Patch methods in Core and Base
2322

src/precompile_utils.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,12 @@ static void *jl_precompile_worklist(jl_array_t *worklist, jl_array_t *extext_met
312312
}
313313
}
314314
}
315-
n = jl_array_nrows(new_ext_cis);
316-
for (i = 0; i < n; i++) {
317-
jl_code_instance_t *ci = (jl_code_instance_t*)jl_array_ptr_ref(new_ext_cis, i);
318-
precompile_enq_specialization_(ci->def, m);
315+
if (new_ext_cis) {
316+
n = jl_array_nrows(new_ext_cis);
317+
for (i = 0; i < n; i++) {
318+
jl_code_instance_t *ci = (jl_code_instance_t*)jl_array_ptr_ref(new_ext_cis, i);
319+
precompile_enq_specialization_(ci->def, m);
320+
}
319321
}
320322
void *native_code = jl_precompile_(m, 1);
321323
JL_GC_POP();

0 commit comments

Comments
 (0)