Skip to content

Commit

Permalink
follow up #599 (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Jan 31, 2024
1 parent d161481 commit 05714f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1268,11 +1268,13 @@ using PrecompileTools
(_, cache) in precache
for (_, codeinst) in cache.cache
@static if VERSION v"1.11.0-DEV.1390"
if (@atomic :monotonic codeinst.max_world) == one(UInt) # == WORLD_AGE_REVALIDATION_SENTINEL
if ((@atomic :monotonic codeinst.min_world) > zero(UInt) &&
(@atomic :monotonic codeinst.max_world) == one(UInt)) # == WORLD_AGE_REVALIDATION_SENTINEL
@atomic :monotonic codeinst.max_world = typemax(UInt)
end
else
if codeinst.max_world == one(UInt) # == WORLD_AGE_REVALIDATION_SENTINEL
if (codeinst.min_world > zero(UInt) &&
codeinst.max_world == one(UInt)) # == WORLD_AGE_REVALIDATION_SENTINEL
codeinst.max_world = typemax(UInt)
end
end
Expand Down

0 comments on commit 05714f2

Please sign in to comment.