]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41 versions (bug 32786)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Mar 2025 05:07:07 +0000 (06:07 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Mar 2025 06:43:33 +0000 (07:43 +0100)
commitdbc5a50d12eff4cb3f782129029d04b8a76f58e7
tree5f738f7e104bc756e820d098743f9136abe95dad
parenta8e9022e0f829d44a818c642fc85b3bfbd26a514
nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41 versions (bug 32786)

The new initializer and struct layout does not initialize the
__g_signals field in the old struct layout before the change in
commit c36fc50781995e6758cae2b6927839d0157f213c ("nptl: Remove
g_refs from condition variables").  Bring back fields at the end
of struct __pthread_cond_s, so that they are again zero-initialized.

Reviewed-by: Sam James <sam@gentoo.org>
sysdeps/nptl/bits/thread-shared-types.h
sysdeps/nptl/pthread.h