From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1118) id EB5B43857705; Wed, 5 Apr 2023 18:55:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB5B43857705 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680720923; bh=pyu04mDYOIZLvNaLHzXwmPufcLYeA1xRVO+sCwksuls=; h=From:To:Subject:Date:From; b=KkyRXYCPTB+oL8+TBmfX2Zp/HYm2NwPkTpoNzAVgA61qMy0LEqBc8XZdy/s8mPt1c w4UcqaAWmmAglYQ6ZGF2KDvYVYAnz4DJH/r0/wm792x0Um28w5Hv8IoC85rXSq4MJb LO1DDFPUBJ2YT/esRNiD5zDidUtpkHOmbMSFmBDM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: John David Anglin To: glibc-cvs@sourceware.org Subject: [glibc] hppa: Update struct __pthread_rwlock_arch_t comment. X-Act-Checkin: glibc X-Git-Author: John David Anglin X-Git-Refname: refs/heads/master X-Git-Oldrev: e9327e8584b2d90d9fb6f489b6e446dccd1cd5da X-Git-Newrev: c4468cd3995b4236ea886901109b194641132b08 Message-Id: <20230405185523.EB5B43857705@sourceware.org> Date: Wed, 5 Apr 2023 18:55:23 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c4468cd3995b4236ea886901109b194641132b08 commit c4468cd3995b4236ea886901109b194641132b08 Author: John David Anglin Date: Wed Apr 5 18:54:47 2023 +0000 hppa: Update struct __pthread_rwlock_arch_t comment. Signed-off-by: John David Anglin 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;