79558567

Date: 2025-04-06 18:28:22
Score: 2.5
Natty:
Report link

2 and 3 can be reordered. See Peter Cordes's answer here: https://stackoverflow.com/a/77080997/19260728

The store side of the ++x and the subsequent acquire load can be reordered unless you have a StoreLoad barrier - either std::atomic_memory_fence(std::memory_order_seq_cst), or just making load #3 also seq_cst

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: tzcnt