Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wK1VN-000VHn-0c for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 22:11:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wK1VL-00999L-35 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 22:11:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wK1VL-009994-0S for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 22:11:07 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wK1VI-00000000DCQ-27Xu for pgsql-hackers@postgresql.org; Mon, 04 May 2026 22:11:06 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id B7DBE1D0007C; Mon, 4 May 2026 18:11:03 -0400 (EDT) Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-05.internal (MEProxy); Mon, 04 May 2026 18:11:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=partin.io; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1777932663; x=1778019063; bh=0215/8UY0gmkxs/kqE0STwv1wUNG7icdF7rxk+Gplx0=; b= YTNBrq0UqtvLRTcxxZDhnd9peqblArUGndDkJPDywSIGMjtOxoiN4wYSy8DmSgaz +TPtuNbDcJLofYTVWKN9HtEEqkJYnxGb7qQKDyq4kcfDD/GpQ4hNQQsoClYl/tcT pq4gi6C1KDnfF6sFCkTdu/LqrBBzekQ6w3it0ivDB6WUmyNL07fiYIvGvhXp9a3g 7TJyGfj5oo4xdNpbzY5zI4NueoLiKT7iTfTMWUkCVzyG95A8PEE4HvwbyfTQ6iVP TO4iThdJ474ZkcsnjJPUGb3b+crPi4i6OSfL6cwXzPt90YT7WLClhYgBR5aYl8bu TKmMR7gsG3rvjSjmIk5FLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1777932663; x= 1778019063; bh=0215/8UY0gmkxs/kqE0STwv1wUNG7icdF7rxk+Gplx0=; b=j NgM0d5PkEhRINgTw8fzcUpkCjkd/UtVa5hsfwq67PIVJlIUD1/aiHTaFhVMGGj0w L4msZpfBEBsJL9DJ79nppzmqEiI2o1CmfQcyWaiRRlpEfX+RQ48ytHFSEhTvDt52 /lJu0rhljYQi5QgVpWpQihTaN38GmDOQqxZID4/vUiHXOXLX1B194tP6uJDMJoQ9 iseY/jydLhbsxhlQ3MWKKMyloFm51F/EB/M0P37ep3c5A9yeoNif7uXFFVwhWuFM clF+9oNYBwPnzyRSlaZyFKa/xu3ljBXixhEbLttCfE9aNir25BXjN1RLEd3bzEGZ OdQOTrRgPWY19JTWCvsNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddutddttdduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofgggfgtfffkvefuvffhofhfjgesthhqredtredtjeenucfhrhhomhepfdfvrhhi shhtrghnucfrrghrthhinhdfuceothhrihhsthgrnhesphgrrhhtihhnrdhioheqnecugg ftrfgrthhtvghrnhepjeeihfeffeeivdehheehgeeitdfhtdduheeuleehkeeluedvhfev heekhfelgeetnecuffhomhgrihhnpegrmhgriihonhdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtrhhishhtrghnsehprghrthhi nhdrihhopdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehnrghthhgrnhgusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehp ghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: idd01497b:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 3820D780075; Mon, 4 May 2026 18:11:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 04 May 2026 22:11:02 +0000 Message-Id: Cc: "pgsql-hackers" Subject: Re: small cleanup for s_lock.h To: "Nathan Bossart" From: "Tristan Partin" X-Mailer: aerc 0.21.0 References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon May 4, 2026 at 4:50 PM CDT, Nathan Bossart wrote: > I noticed that s_lock.h points to a default implementation of tas() in > tas.s or s_lock.c, but AFAICT there hasn't been a tas() implementation in > s_lock.c since commit 718aa43a4e, and commit 25f36066dd seems to have > removed the last remaining tas.s files. So, I think this is dead code. > > I also noticed that HAS_TEST_AND_SET just means that TAS is defined, so I > wrote a 0002 that removes it in favor of checking TAS directly. I'd like > to rewrite the comment at the top of the file, too, but haven't gotten to > that yet. I find it a little misleading, especially because we #error if > TAS isn't defined. This looks pretty reasonable to me. --=20 Tristan Partin PostgreSQL Contributors Team AWS (https://aws.amazon.com)