We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f05136 commit 2cbcfe9Copy full SHA for 2cbcfe9
src/atomics.jl
@@ -191,9 +191,9 @@ end
191
if sizeof(T) == 0
192
# Mimicking what `Core.Intrinsics.atomic_pointerset` generates.
193
# See: https://github.com/JuliaLang/julia/blob/v1.7.2/src/cgutils.cpp#L1570-L1572
194
- is_stronger_than_monotonic(order) || return :ptr
195
return quote
196
- Core.Intrinsics.fence($(QuoteNode(order)))
+ is_stronger_than_monotonic(_valueof(order)) || return :ptr
+ Core.Intrinsics.atomic_fence(_valueof(order))
197
ptr
198
end
199
0 commit comments