Skip to content

compiler_fence SeqCst docs are incorrect #54962

Closed
@parched

Description

@parched

The documentation for compiler_fence with SeqCst say "no re-ordering of reads and writes across this point is allowed". As I understand it, SeqCst for a single thread doesn't give anything more than AcqRel. E.g., a store before the fence could be moved past a load after then fence. Is that correct?

cc @jonhoo @RalfJung

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-concurrencyArea: ConcurrencyA-docsArea: 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.P-mediumMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions