Skip to content

Commit

Permalink
@atomic :monotonic stores
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jan 15, 2025
1 parent 5295c83 commit 6e8bd6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/staticdata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function _insert_backedges(edges::Vector{Any}, stack::Vector{CodeInstance}, visi
end
if get_world_counter() == maxvalid
maxvalid = typemax(UInt)
@atomic codeinst.max_world = maxvalid
@atomic :monotonic codeinst.max_world = maxvalid
end
if external
caller = get_ci_mi(codeinst)
Expand Down Expand Up @@ -196,9 +196,9 @@ function verify_method(codeinst::CodeInstance, stack::Vector{CodeInstance}, visi
while length(stack) depth
child = pop!(stack)
if maxworld 0
@atomic child.min_world = minworld
@atomic :monotonic child.min_world = minworld
end
@atomic child.max_world = maxworld
@atomic :monotonic child.max_world = maxworld
@assert visiting[child] == length(stack) + 1
delete!(visiting, child)
invalidations = _jl_debug_method_invalidation[]
Expand Down

0 comments on commit 6e8bd6b

Please sign in to comment.