aboutsummaryrefslogtreecommitdiff
path: root/src/Package/Module.zig
diff options
context:
space:
mode:
authorDoug Coleman <doug.coleman@gmail.com>2025-12-21 18:17:04 -0600
committerDoug Coleman <doug.coleman@gmail.com>2025-12-21 20:11:05 -0600
commit6b9125cbe662d530160e0732c856aa0da86894c0 (patch)
tree7968821617128ab86b2b5e2d4d1081177c974942 /src/Package/Module.zig
parent8c5f731afbf2572f98b2840f3307e2c8a607d7a8 (diff)
downloadzig-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