From: John David Anglin Date: Wed, 5 Apr 2023 18:54:47 +0000 (+0000) Subject: hppa: Update struct __pthread_rwlock_arch_t comment. X-Git-Tag: glibc-2.38~414 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4468cd3995b4236ea886901109b194641132b08;p=thirdparty%2Fglibc.git hppa: Update struct __pthread_rwlock_arch_t comment. Signed-off-by: John David Anglin --- diff --git a/sysdeps/hppa/nptl/bits/struct_rwlock.h b/sysdeps/hppa/nptl/bits/struct_rwlock.h index 59bc9fe76ff..762b05b2ecd 100644 --- a/sysdeps/hppa/nptl/bits/struct_rwlock.h +++ b/sysdeps/hppa/nptl/bits/struct_rwlock.h @@ -27,11 +27,11 @@ struct __pthread_rwlock_arch_t next four words are all set to 1 by the Linuxthreads PTHREAD_RWLOCK_INITIALIZER. We ignore them in NPTL. - The 16-byte aligned lock stucture causes various pthread - structures to be over aligned. This causes some builds - to fail which assume a maximum alignment of 8 bytes. - Linuxthreads has been removed for 12 years, so drop - alignment of lock structure. */ + The 16-byte aligned lock stucture is not needed for NPTL. + It causes some package builds to fail (e.g., protobuf) and + issues with dynamic memory allocation in C++ versions prior + to C++17. Removing it allows for more efficient allocators + and better compatibility with other architectures. */ int __compat_padding[4]; unsigned int __readers; unsigned int __writers;