On Sun, Dec 18, 2011 at 5:42 PM, Martin Pitt <mpitt(at)debian(dot)org> wrote:
>> It probably makes sense to use it on any platform where it's
>> defined. Presumably an implementation provided by the compiler is
>> always going to be at least as good as any magic assembler
>> incantations we can come up with.
> I agree. How about a patch like this? It uses builtin atomics if
> available, and falls back to the custom implementations if not.
-1. Absent some evidence that gcc's implementations are superior to
ours, I think we should not change stuff that works now. That's
likely to lead to subtle bugs that are hard to find and perhaps
dependent on the exact compiler version used.
But I'm completely cool with doing this for platforms where we haven't
otherwise got an implementation. Any port in a storm.
The Enterprise PostgreSQL Company
In response to
pgsql-bugs by date
|Next:||From: alexander.fortin||Date: 2011-12-19 15:06:31|
|Subject: BUG #6347: Reopening bug #6085|
|Previous:||From: marts||Date: 2011-12-19 13:53:37|
|Subject: BUG #6346: unsubscribe doesn't work|