diff options
| author | Doug Coleman <doug.coleman@gmail.com> | 2025-12-21 18:17:04 -0600 |
|---|---|---|
| committer | Doug Coleman <doug.coleman@gmail.com> | 2025-12-21 20:11:05 -0600 |
| commit | 6b9125cbe662d530160e0732c856aa0da86894c0 (patch) | |
| tree | 7968821617128ab86b2b5e2d4d1081177c974942 /src/Package/Module.zig | |
| parent | 8c5f731afbf2572f98b2840f3307e2c8a607d7a8 (diff) | |
| download | zig-6b9125cbe662d530160e0732c856aa0da86894c0.tar.gz zig-6b9125cbe662d530160e0732c856aa0da86894c0.zip | |
build_runner: fix race condition in dispatch_deps capacity reservation
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
Diffstat (limited to 'src/Package/Module.zig')
0 files changed, 0 insertions, 0 deletions
