mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
This was causing zig2.exe to crash during bootstrap, because there was an atomic load of read-only memory, and the attempt to write to it as part of the (idempotent) atomic exchange was invalid. Aligned reads (of u32 / u64) are atomic on x86 / x64, so this is replaced with an optimization-proof load (`__iso_volatile_load8*`) and a reordering barrier. |
||
|---|---|---|
| .. | ||
| config.h.in | ||
| config.zig.in | ||
| FuncGen.h | ||
| InputStream.h | ||
| panic.h | ||
| wasi.c | ||
| wasm.h | ||
| wasm2c.c | ||
| zig.h | ||
| zig1.wasm | ||