diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-23 13:47:44 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-23 13:47:44 -0700 |
| commit | d210f733f80731487f8f83caf621e04506f50bb4 (patch) | |
| tree | 4bd9994db3bec04dd8eb9c39944189c35c53f8f5 /src/link | |
| parent | 6bf52b0505ad7317b5f0d6fa77b7c41318b9c73b (diff) | |
| download | zig-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')
0 files changed, 0 insertions, 0 deletions
