Skip to content

Is nomem a correct option for isb, dsb and dmb? #502

Closed
@evading

Description

@evading

In the nightly reference for inline assembly it says for nomem that: "The compiler also assumes that this asm! block does not perform any kind of synchronization with other threads, e.g. via fences."
The same wording is not in the stable docs but I don't know if it is only added due to doc update or if there is an actual difference in how the compiler works.
Should those fences have the nomem option set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions