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.94.2) (envelope-from ) id 1rFGwF-0098Ah-Qz for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Dec 2023 16:57:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rFGwE-00B9Zg-4Y for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Dec 2023 16:57:54 +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.94.2) (envelope-from ) id 1rFGwD-00B9ZY-RM for pgsql-hackers@lists.postgresql.org; Mon, 18 Dec 2023 16:57:53 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rFGwB-00B1zT-Ax for pgsql-hackers@postgresql.org; Mon, 18 Dec 2023 16:57:52 +0000 Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7b72192f7a1so102573739f.1 for ; Mon, 18 Dec 2023 08:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702918670; x=1703523470; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jk3UTIAOXJxD7oyF7uTTjlxgZ2Pi2lGfFd+bck0flx4=; b=MsuD8p2clX9nlTGcTxqwYYdCsCZgXTjFfduZRjsZVZx3LmqZbezDKRJB4WeCGdleun tKuRgzSlHyMkwQksbdQ98YNkV1mkpWmLIjVIKqVPQE20AxqkNglNqgpJKXI0AImXVDjt TTK/g6pAyM2v7BsjTEkHaN34E9s8Kd2DP1xYr2yysJ8t+FKZdEcLWQuLkDyueMvD6ngF KtM8OQf3fONSYTz+Y8wpBSG4vzyKpehvfznPL+7ODHfT74Pz1EvAVJ313H8AMU2z1DST Uvo1UOcjSx6ed+QMhX7DqJQbsKi6Fr6lusxT5c8fHfrJSqvRFRYI+J1S5u7AvXq4hDGA XpwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702918670; x=1703523470; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jk3UTIAOXJxD7oyF7uTTjlxgZ2Pi2lGfFd+bck0flx4=; b=o/bvJ27cpwF+nN0BkOX6TH597wU7477/Z9YFdjzcPE1rXbxOHawOS1Vy7OG7En7Erp 5LYtF10a2/maUnbnJ/bem37mcsrOsbN9oYw0UW+/sGQuk3Nvm4QL2anznnhD6+JYh3Ee GdQtyj1H/nfB0J7fld++/b0302vkj7NOlAwjrKP/VsP3xvOR3sMnj4uGhmYckOSz64jh mOl3yIgUzqWMO0Cri5MVKLyS7Mhfrvh/4nWDlf4RJ4QHrzreHwHMwnVINeWzT2bV5f3J 0v8+zQq4LCsRh2GeVGvCXvLclebXE2R4dMn4sNwhnlwJJIB8Rku2YIRapfCszNptTyEn pwmA== X-Gm-Message-State: AOJu0YxvJuQs51f2ZSNOOByqdXKHnZ+UBbFBS8PsvucSj2GPiy86NxWt ZtaAGAgd0/wkDJxzzMT8bOc= X-Google-Smtp-Source: AGHT+IEj7X926kVcA2pqSKY/I7h+1pmDf58vlw6kyG8Vckmb3A3K/G+1clplD4Xi6w+By9E26+MBKg== X-Received: by 2002:a92:c54e:0:b0:35f:b61f:a8a0 with SMTP id a14-20020a92c54e000000b0035fb61fa8a0mr797642ilj.13.1702918665734; Mon, 18 Dec 2023 08:57:45 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id bw4-20020a056638460400b00469010b6cc7sm488472jab.114.2023.12.18.08.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:57:45 -0800 (PST) Date: Mon, 18 Dec 2023 10:57:43 -0600 From: Nathan Bossart To: Andres Freund Cc: pgsql-hackers@postgresql.org Subject: Re: optimize atomic exchanges Message-ID: <20231218165743.GA532093@nathanxps13> References: <20231129212905.GA1258737@nathanxps13> <20231201031815.GA1519459@nathanxps13> <20231201035627.7xke2qvec6p5lihy@awork3.anarazel.de> <20231201043522.GB1577008@nathanxps13> <20231204181805.GA2148732@nathanxps13> <20231204210857.GA2203877@nathanxps13> <20231215125627.pk4olja2basu5kjh@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215125627.pk4olja2basu5kjh@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Dec 15, 2023 at 04:56:27AM -0800, Andres Freund wrote: > I don't think we need the inline asm. Otherwise looks good. Committed with that change. Thanks for reviewing! I am going to watch the buildfarm especially closely for this one. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com