Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follow up #599 #606

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
(_, 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

Check warning on line 1272 in src/JET.jl

View check run for this annotation

Codecov / codecov/patch

src/JET.jl#L1272

Added line #L1272 was not covered by tests
@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) &&

Check warning on line 1276 in src/JET.jl

View check run for this annotation

Codecov / codecov/patch

src/JET.jl#L1276

Added line #L1276 was not covered by tests
codeinst.max_world == one(UInt)) # == WORLD_AGE_REVALIDATION_SENTINEL
codeinst.max_world = typemax(UInt)
end
end
Expand Down
Loading