From patchwork Wed Apr 5 18:59:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 1765708 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PsDTB1BJLz1yYP for ; Thu, 6 Apr 2023 04:59:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 218663857726 for ; Wed, 5 Apr 2023 18:59:40 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 7C0043858D20 for ; Wed, 5 Apr 2023 18:59:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C0043858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org Received: from mx3210.localdomain (bras-base-otwaon0925w-grc-09-174-95-58-126.dsl.bell.ca [174.95.58.126]) by dellerweb.de (Postfix) with ESMTPSA id EB95E16000FE; Wed, 5 Apr 2023 20:59:29 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id EF62C22011C; Wed, 5 Apr 2023 18:59:27 +0000 (UTC) Date: Wed, 5 Apr 2023 18:59:27 +0000 From: John David Anglin To: libc-alpha@sourceware.org Cc: Helge Deller Subject: [committed] hppa: Update struct __pthread_rwlock_arch_t comment Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Committed to master. Dave --- hppa: Update struct __pthread_rwlock_arch_t comment. Signed-off-by: John David Anglin 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;