]> 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>
Fri, 11 Jul 2025 12:57:50 +0000 (05:57 -0700)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 11 Jul 2025 17:56:56 +0000 (13:56 -0400)
commit51210d64966caa0091e9c9cd260f1be1b19f7f4d
tree072acaefee639f5cc76023c07fa3370d42e70028
parent39a80f40359e2b7b778c2c42cabf3d16765a101b
nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41 versions (bug 32786)

[BZ #25847]

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.

(cherry picked from commit dbc5a50d12eff4cb3f782129029d04b8a76f58e7)

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/nptl/bits/thread-shared-types.h
sysdeps/nptl/pthread.h