[PATCH] D116088: [compiler-rt] Implement ARM atomic operations for architectures without SMP support

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 27 11:17:53 PDT 2022


efriedma added a comment.

ldr+op+swp still isn't atomic.  For each point in the code, please try the exercise of "what if my code is interrupted here"?

The only way to use swp to implement general atomic operations is to use a separate spinlock.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116088/new/

https://reviews.llvm.org/D116088



More information about the cfe-commits mailing list