Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8AFO-00035u-AE for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 00:47:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8AFN-00073w-2J for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 00:47:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8AFM-00073n-PP for pgsql-hackers@lists.postgresql.org; Mon, 04 Jul 2022 00:47:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8AFK-0006fP-PC for pgsql-hackers@postgresql.org; Mon, 04 Jul 2022 00:47:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2640lL771420390; Sun, 3 Jul 2022 20:47:21 -0400 From: Tom Lane To: Andres Freund cc: Thomas Munro , Peter Geoghegan , Noah Misch , Robert Haas , PostgreSQL Hackers Subject: Re: AIX support - alignment issues In-reply-to: <20220704004332.y3vcm5btn5h5fbpp@awork3.anarazel.de> References: <20220702183354.a6uhja35wta7agew@alap3.anarazel.de> <968410.1656789743@sss.pgh.pa.us> <977853.1656794075@sss.pgh.pa.us> <1415825.1656893299@sss.pgh.pa.us> <20220704004332.y3vcm5btn5h5fbpp@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 03 Jul 2022 17:43:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1420388.1656895641.1@sss.pgh.pa.us> Date: Sun, 03 Jul 2022 20:47:21 -0400 Message-ID: <1420389.1656895641@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-07-03 20:08:19 -0400, Tom Lane wrote: >> I do still feel that HPPA is of interest, to keep us honest >> about spinlock support > I.e. forgetting to initialize them? Or the weird alignment stuff it has? The nonzero initialization mainly, and to a lesser extent the weird size of a lock. I think the fact that the active word is only part of the lock struct is pretty well encapsulated. > I'd started to work a patch to detect missing initialization for both > spinlocks and lwlocks, I think that'd be good to have for more common cases. No objection to having more than one check for this ;-) regards, tom lane