]> sourceware.org Git - glibc.git/commitdiff
hppa: Update struct __pthread_rwlock_arch_t comment.
authorJohn David Anglin <danglin@gcc.gnu.org>
Wed, 5 Apr 2023 18:54:47 +0000 (18:54 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 5 Apr 2023 18:54:47 +0000 (18:54 +0000)
Signed-off-by: John David Anglin <dave.anglin@bell.net>
sysdeps/hppa/nptl/bits/struct_rwlock.h

index 59bc9fe76ff52c1d5538d66d03e93dccdb97ee7e..762b05b2ecdea62a95419e1946ed69be2897b30c 100644 (file)
@@ -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;
This page took 0.042204 seconds and 5 git commands to generate.