-
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
compiler_fence SeqCst docs are incorrect #54962
Copy link
Copy link
Closed
Labels
A-concurrencyArea: ConcurrencyArea: ConcurrencyA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityMedium priorityT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Description
Activity
Metadata
Metadata
Assignees
Labels
A-concurrencyArea: ConcurrencyArea: ConcurrencyA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityMedium priorityT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
The documentation for
compiler_fencewithSeqCstsay "no re-ordering of reads and writes across this point is allowed". As I understand it,SeqCstfor a single thread doesn't give anything more thanAcqRel. E.g., a store before the fence could be moved past a load after then fence. Is that correct?cc @jonhoo @RalfJung