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

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c4468cd3995b4236ea886901109b194641132b08

commit c4468cd3995b4236ea886901109b194641132b08
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Wed Apr 5 18:54:47 2023 +0000

    hppa: Update struct __pthread_rwlock_arch_t comment.
    
    Signed-off-by: John David Anglin <dave.anglin@bell.net>

Diff:
---
 sysdeps/hppa/nptl/bits/struct_rwlock.h | 10 +++++-----
 1 file 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;

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

only message in thread, other threads:[~2023-04-05 18:55 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:55 [glibc] 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).