about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2023-04-05 18:54:47 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2023-04-05 18:54:47 +0000
commitc4468cd3995b4236ea886901109b194641132b08 (patch)
treef8d53f7480b8e4357f4e3cc854172e4ed1883f16
parente9327e8584b2d90d9fb6f489b6e446dccd1cd5da (diff)
downloadglibc-c4468cd3995b4236ea886901109b194641132b08.tar.gz
glibc-c4468cd3995b4236ea886901109b194641132b08.tar.xz
glibc-c4468cd3995b4236ea886901109b194641132b08.zip
hppa: Update struct __pthread_rwlock_arch_t comment.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
-rw-r--r--sysdeps/hppa/nptl/bits/struct_rwlock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/hppa/nptl/bits/struct_rwlock.h b/sysdeps/hppa/nptl/bits/struct_rwlock.h
index 59bc9fe76f..762b05b2ec 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;