AArch64 has single-copy 64 bit atomicity

Started by Thomas Munroabout 5 years ago2 messageshackers
Jump to latest
#1Thomas Munro
thomas.munro@gmail.com

Hi,

Andres mentioned in passing that he'd defined
PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY only on Itanium, PPC and x86 but
not ARM.

I took a look at https://developer.arm.com/documentation/ddi0487/gb/
under "B2.2.1 Requirements for single-copy atomicity" and it seemed
like we should turn this on for __aarch64__. It goes back to the
original ARMv8-A so should cover all 64 bit ARM systems.

Attachments:

0001-AArch64-has-single-copy-64-bit-atomicity.patchtext/x-patch; charset=US-ASCII; name=0001-AArch64-has-single-copy-64-bit-atomicity.patchDownload+5-1
#2Alexander Korotkov
aekorotkov@gmail.com
In reply to: Thomas Munro (#1)
Re: AArch64 has single-copy 64 bit atomicity

On Wed, Nov 3, 2021 at 1:34 AM Thomas Munro <thomas.munro@gmail.com> wrote:

Andres mentioned in passing that he'd defined
PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY only on Itanium, PPC and x86 but
not ARM.

I took a look at https://developer.arm.com/documentation/ddi0487/gb/
under "B2.2.1 Requirements for single-copy atomicity" and it seemed
like we should turn this on for __aarch64__. It goes back to the
original ARMv8-A so should cover all 64 bit ARM systems.

That should be very good because ARM gains popularity and the effect
of atomic read is significant

------
Regards,
Alexander Korotkov