mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-04 00:32:40 +03:00
6b9125cbe6
Move ensureUnusedCapacity inside the mutex call to prevent a race condition where other worker threads could append to memory_blocked_steps between checking the length and iterating. repro branch: https://codeberg.org/erg/zig/src/branch/fix-30014-repro check out that branch, and depending on if you have the fix-30014 patch or not, it will either race condition or succeed Fixes #30014