Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 183681542B97 for ; Mon, 19 Dec 2011 11:40:00 -0400 (AST) Received: from [213.9.93.70] (helo=mail.piware.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcfJm-0005Ot-PH for pgsql-bugs@postgresql.org; Mon, 19 Dec 2011 15:39:59 +0000 Received: from localhost.localdomain (p549B261F.dip.t-dialin.net [84.155.38.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Martin Pitt (ThinkPad)", Issuer "piware CA" (verified OK)) by mail.piware.de (Postfix) with ESMTPS id 9B5541517A61 for ; Mon, 19 Dec 2011 16:39:06 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 1000) id 850EF20158; Mon, 19 Dec 2011 16:39:43 +0100 (CET) Date: Mon, 19 Dec 2011 16:39:43 +0100 From: Martin Pitt To: pgsql-bugs@postgresql.org Subject: Re: [PATCH] Use CC atomic builtins if available [was: Re: TAS patch for building on armel/armhf thumb] Message-ID: <20111219153943.GK2972@piware.de> Mail-Followup-To: pgsql-bugs@postgresql.org References: <4EEB1C77.1000309@enterprisedb.com> <20111218224203.GA2950@piware.de> <4EEF5397.8090200@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EEF5397.8090200@enterprisedb.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Host-Lookup-Failed: Reverse DNS lookup failed for 213.9.93.70 (failed) X-Pg-Spam-Score: 0.3 (/) X-Archive-Number: 201112/155 X-Sequence-Number: 31966 Heikki Linnakangas [2011-12-19 17:09 +0200]: > One thing that caught my eye: if you use __sync_lock_and_test() to > implement S_LOCK(), you really should be using __sync_lock_release() > for S_UNLOCK(). Right, the patch I send does that: #define S_UNLOCK(lock) __sync_lock_release(lock) Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)