Skip to content

Commit 31c6591

Browse files
committed
Adjust for upstream JuliaLang/julia#52997
1 parent 0d27b0e commit 31c6591

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/jlgen.jl

+4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ function (callback::CodeCacheCallback)(replaced::MethodInstance, max_world::UInt
204204
for ci in cis
205205
if ci.max_world == ~0 % Csize_t
206206
@assert ci.min_world - 1 <= max_world "attempting to set illogical constraints"
207+
@static if VERSION >= v"1.11.0-DEV.1390"
208+
@atomic ci.max_world = max_world
209+
else
207210
ci.max_world = max_world
211+
end
208212
end
209213
@assert ci.max_world <= max_world
210214
end

0 commit comments

Comments
 (0)