diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-04-16 17:22:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-04-16 17:22:49 +0200 |
commit | 34fe8e90007afbc87941df9b01ffcf8747c11497 (patch) | |
tree | cc528fd55673376de2d052f8f4bdf2cd69af4c5a /libjava/classpath/lib/java | |
parent | 61dfb0747afcece3b7a690807b83b366ff34f329 (diff) | |
download | gcc-34fe8e90007afbc87941df9b01ffcf8747c11497.zip gcc-34fe8e90007afbc87941df9b01ffcf8747c11497.tar.gz gcc-34fe8e90007afbc87941df9b01ffcf8747c11497.tar.bz2 |
libatomic: Fix up libat_{,un}lock_n for mingw [PR119796]
Here is just a port of the previously posted patch to mingw which
clearly has the same problems.
2025-04-16 Jakub Jelinek <jakub@redhat.com>
PR libgcc/101075
PR libgcc/119796
* config/mingw/lock.c (libat_lock_n, libat_unlock_n): Start with
computing how many locks will be needed and take into account
((uintptr_t)ptr % WATCH_SIZE). If some locks from the end of the
locks array and others from the start of it will be needed, first
lock the ones from the start followed by ones from the end.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions