Re: GCC builtins for atomic-test-and-set, memory barries, and such - Mailing list pgsql-hackers

From Tom Lane
Subject Re: GCC builtins for atomic-test-and-set, memory barries, and such
Date
Msg-id 27899.1190605333@sss.pgh.pa.us
Whole thread Raw
In response to GCC builtins for atomic-test-and-set, memory barries, and such  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: GCC builtins for atomic-test-and-set, memory barries, and such
List pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> When reading Tom's comment about the bug in my "use latestCompletedXid 
> to slightly speed up TransactionIdIsInProgress" patch, I remembered that 
> I recently stumbled across GCC builtins for atomic test-and-test and
> read/write reordering barriers...

> Has anyone looked into those? It seems that those could be used to 
> provide a fallback spinlock implementation - though maybe we already 
> cover all interesting targets, and it's not worth the effort.

It doesn't seem very interesting given that (a) we already have working
code for this area, and (b) gcc is not our only target compiler.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Problem with MSVC install script
Next
From: "Jonah H. Harris"
Date:
Subject: Re: GCC builtins for atomic-test-and-set, memory barries, and such