]> 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)
committerCarlos O'Donell <carlos@redhat.com>
Tue, 29 Apr 2025 17:26:36 +0000 (13:26 -0400)
commitd33d10642fb24091e8fc8b9115f0a17d9f78491d
tree95080bb07611f0f704491ced7be5c65869ff94ad
parentb1eb369aee9cafefdbe5a65375310a918ef0c3ec
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>
(cherry picked from commit dbc5a50d12eff4cb3f782129029d04b8a76f58e7)
sysdeps/nptl/bits/thread-shared-types.h
sysdeps/nptl/pthread.h