Skip to content

Commit

Permalink
minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jan 16, 2024
1 parent 4040f25 commit fb61eee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1266,13 +1266,12 @@ using PrecompileTools
function override_precompiled_cache()
for precache in (JET_ANALYZER_CACHE, OPT_ANALYZER_CACHE),
(_, cache) in precache
iddict = cache.cache
for (_, codeinst) in iddict
for (_, codeinst) in cache.cache
if codeinst.max_world == one(UInt) # == WORLD_AGE_REVALIDATION_SENTINEL
codeinst.max_world = typemax(UInt)
end
end
Base.rehash!(iddict) # XXX why is this needed?
Base.rehash!(cache.cache) # HACK to avoid JuliaLang/julia#52915
end
end
override_precompiled_cache() # to precompile this callback itself
Expand Down

0 comments on commit fb61eee

Please sign in to comment.