diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-07-03 10:30:12 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-07-03 22:21:04 +0200 |
| commit | b6faf63995b63d5958cf4b95ad1e9bab17d1bc6d (patch) | |
| tree | 00813b0f1742fb402d5e49d04e055180c06e2d59 /src/corelib/tools/qarraydata.cpp | |
| parent | 7dcd01d0f0cacde02bb7cb9686413ddd00fc76ca (diff) | |
QFreeList: fix UB (data race) in release()
The load from _v[block] must acquire, to match the storeRelease()
implied in the testAndSetRelease() in next(), where _v[block] was
allocated. A loadReleaxed() will not establish the happens-before
relation required to avoid a data race.
So use loadAcquire().
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I34003ef7510a0d78f7851d2b4b4aab01a686babf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
0 files changed, 0 insertions, 0 deletions
