Re: Move PinBuffer and UnpinBuffer to atomics - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Move PinBuffer and UnpinBuffer to atomics
Date
Msg-id 16555.1459272280@sss.pgh.pa.us
Whole thread Raw
In response to Re: Move PinBuffer and UnpinBuffer to atomics  (Andres Freund <andres@anarazel.de>)
Responses Re: Move PinBuffer and UnpinBuffer to atomics
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Dilip, could you test performance of reducing ppc's spinlock to 1 byte?
> Cross-compiling suggest that doing so "just works".  I.e. replace the
> #if defined(__ppc__) typedef from an int to a char.

AFAICS, lwarx/stwcx are specifically *word* wide.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Move PinBuffer and UnpinBuffer to atomics
Next
From: Robert Haas
Date:
Subject: Re: Reworks of CustomScan serialization/deserialization