Skip to content

Commit cff8bd6

Browse files
authored
staticdata: Fix typo in recursive edge revalidation (JuliaLang#57383)
Addresses mystery mmtk#3 in JuliaLang#57381 (and extends the test from that issue).
1 parent 20162ea commit cff8bd6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/staticdata.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4390,7 +4390,7 @@ JL_DLLEXPORT void _jl_promote_ci_to_current(jl_code_instance_t *ci, size_t valid
43904390
jl_value_t *edge = jl_svecref(edges, i);
43914391
if (!jl_is_code_instance(edge))
43924392
continue;
4393-
_jl_promote_ci_to_current(ci, validated_world);
4393+
_jl_promote_ci_to_current((jl_code_instance_t *)edge, validated_world);
43944394
}
43954395
}
43964396

test/precompile.jl

+1
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,7 @@ precompile_test_harness("llvmcall validation") do load_path
23072307
@eval using LLVMCall
23082308
invokelatest() do
23092309
@test LLVMCall.do_llvmcall2() == UInt32(0)
2310+
@test first(methods(LLVMCall.do_llvmcall)).specializations.cache.max_world === typemax(UInt)
23102311
end
23112312
end
23122313

0 commit comments

Comments
 (0)