Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150265265
D52744.1792043249.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
887 B
Referenced Files
None
Subscribers
None
D52744.1792043249.diff
View Options
diff --git a/share/man/man9/atomic.9 b/share/man/man9/atomic.9
--- a/share/man/man9/atomic.9
+++ b/share/man/man9/atomic.9
@@ -235,6 +235,18 @@
However, they will not prevent the compiler or processor from moving loads
or stores into the critical section, which does not violate the semantics of
a mutex.
+.Ss Architecture-dependent caveats for compare-and-swap
+The
+.Fn atomic_[f]cmpset_<type>
+operations, specifically the ones without explicitly specified memory
+ordering variants, are defined as relaxed.
+But the implementation on the
+.Tn x86
+architectures provides fully sequentially consistent semantic.
+On
+.Tn arm64/aarch64
+architecture, the operation provides acquire semantic for load
+and release semantic for store accesses.
.Ss Thread Fence Operations
Alternatively, a programmer can use atomic thread fence operations to
constrain the reordering of accesses.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 15, 5:47 AM (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30405158
Default Alt Text
D52744.1792043249.diff (887 B)
Attached To
Mode
D52744: atomic.9: provide fine details about CAS memory model MD semantic
Attached
Detach File
Event Timeline
Log In to Comment