atomic operation should have ordering parameters,like relax release...
Cranelift currently uses sequential consistency as only ordering option. This matches webassembly. Having a weaker memory model requires carefully specifying it. Using C++'s memory model is not an option IMO as it has been proven to be inconsistent and thus effectively allow miscompilation in certain cases.
ok,thanks.
yang yu has marked this topic as resolved.
Last updated: Nov 26 2024 at 00:12 UTC