Re: lock support for aarch64 - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: lock support for aarch64
Date
Msg-id CAHyXU0zKJPA_gHFKmqOH8qihj+H39rRL0ePovaX1hb4TBXSvRA@mail.gmail.com
Whole thread Raw
In response to Re: lock support for aarch64  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: lock support for aarch64  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On Mon, May 13, 2013 at 8:15 AM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
> On 13.05.2013 15:39, Mark Salter wrote:
>>
>> I used the following patch to add lock support aarch64. It is just a
>> copy of the arm support based on gcc builtins. Postgresql built with
>> this patch passes the various tests.
>
>
> I think this needs an "#ifdef HAVE_GCC_INT_ATOMICS", like the ARM codepath.

I'm starting to wonder why we don't always use gcc atomics if they are
available and assembly implementation is not (any maybe, even if it
is).

merlin



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Better LWLocks with compare-and-swap (9.4)
Next
From: Noah Misch
Date:
Subject: MemoryContextAllocHuge(): selectively bypassing MaxAllocSize