Skip to content

Implement sequentially consistent memory ordering for strong references #3

@lorentey

Description

@lorentey

To simplify the initial implementation, atomic references currently treat all orderings as acquire/release, including .sequentiallyConsistent. This isn't tenable -- they should at least differentiate between acquire/release and sequentially consistent orderings. Supporting relaxed ordering is less crucial, given that strong references already involve some amount of memory fences.

Note that we don't want to inline the strong reference implementation into user code, so internally each supported ordering must be mapped to its own set of independent entry points. Unfortunately, this will likely involve a measure of code generation. (Another option would be to use relaxed operations and add appropriate fences.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions