Skip to content

Commit

Permalink
Adjust for upstream JuliaLang/julia#52997
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Feb 8, 2024
1 parent 0d27b0e commit 31c6591
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ function (callback::CodeCacheCallback)(replaced::MethodInstance, max_world::UInt
for ci in cis
if ci.max_world == ~0 % Csize_t
@assert ci.min_world - 1 <= max_world "attempting to set illogical constraints"
@static if VERSION >= v"1.11.0-DEV.1390"
@atomic ci.max_world = max_world
else
ci.max_world = max_world
end
end
@assert ci.max_world <= max_world
end
Expand Down

0 comments on commit 31c6591

Please sign in to comment.