Skip to content

Commit

Permalink
minor fixes on test/precompile.jl (JuliaLang#53476)
Browse files Browse the repository at this point in the history
These changes are driven-by fixes I found during investigating into a
more complex issue related to precompilation with external abs int.
  • Loading branch information
aviatesk authored and tecosaur committed Mar 4, 2024
1 parent a106404 commit 94b0408
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,6 @@ let newinterp_path = abspath("compiler/newinterp.jl")
import SimpleModule: basic_caller, basic_callee

module Custom
const CC = Core.Compiler
include("$($newinterp_path)")
@newinterp PrecompileInterpreter
end
Expand Down Expand Up @@ -1826,7 +1825,7 @@ let newinterp_path = abspath("compiler/newinterp.jl")
using CustomAbstractInterpreterCaching2
cache_owner = Core.Compiler.cache_owner(
CustomAbstractInterpreterCaching2.Custom.PrecompileInterpreter())
let m = only(methods(CustomAbstractInterpreterCaching.basic_callee))
let m = only(methods(CustomAbstractInterpreterCaching2.basic_callee))
mi = only(Base.specializations(m))
ci = mi.cache
@test isdefined(ci, :next)
Expand Down

0 comments on commit 94b0408

Please sign in to comment.