Compiler barrier implementation and use

Open
#1 1 comment 0 reactions 1 assignee View on GitHub

@mkroening is already working on this.

Since Aug 31, 2026.

Assessment

This issue has not been assessed yet.

Description

I see a compiler_barrier() is just empty asm, however shouldn't it be a core::sync::atomic::compiler_fence(Ordering::SeqCst) instead?

Also, all the memory barrier instructions should probably be guarded with compiler fences like here (see discussion in https://github.com/rust-embedded/cortex-m/pull/308 and fix in https://github.com/rust-embedded/cortex-m/pull/311).

Dominant language
Rust
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.