aboutsummaryrefslogtreecommitdiff
path: root/src/link/LdScript.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-10-23 13:47:44 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-10-23 13:47:44 -0700
commitd210f733f80731487f8f83caf621e04506f50bb4 (patch)
tree4bd9994db3bec04dd8eb9c39944189c35c53f8f5 /src/link/LdScript.zig
parent6bf52b0505ad7317b5f0d6fa77b7c41318b9c73b (diff)
downloadzig-d210f733f80731487f8f83caf621e04506f50bb4.tar.gz
zig-d210f733f80731487f8f83caf621e04506f50bb4.zip
std.Progress: fix data race
In end(), the freelist pointer is owned so the bare store would be ok. However, there is a load in start() that can happen at the same time, if another start() and end() pair grabs that same index. I don't think this fixes #21663 actually because even if the data race corrupts the value for `next`, the cmpxchg protects the value from being stored there.
Diffstat (limited to 'src/link/LdScript.zig')
0 files changed, 0 insertions, 0 deletions