public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [committed] hppa: Update struct __pthread_rwlock_arch_t comment
@ 2023-04-05 18:59 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2023-04-05 18:59 UTC (permalink / raw)
  To: libc-alpha; +Cc: Helge Deller

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

Committed to master.

Dave
---

hppa: Update struct __pthread_rwlock_arch_t comment.

Signed-off-by: John David Anglin <dave.anglin@bell.net>

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;

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-05 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 18:59 [committed] hppa: Update struct __pthread_rwlock_arch_t comment John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).