ARMV8 fundamental data type atomicity

News and research about CPU microarchitecture and software optimization
Post Reply
hankin
Posts: 3
Joined: 2021-12-10, 13:29:25

ARMV8 fundamental data type atomicity

Post by hankin » 2021-12-10, 16:34:48

As we know, access aligned fundamental data types in INTEL X86 architecture is atomic. How about ARMV8?
I have tried to get the result from Arm Architecture Reference Manual Armv8, for A-profile architecture, I did find something related to atomicity. ARMV8 is other-multi-copy atomic. It promises that multi-threads access one same LOCATION is atomic. But it says LOCATION is a byte. I am wondering that if thread 1 writes an aligned uint64_t memory without lock and thread 2 reads or writes it without lock at the same time. Is it atomic?(uint64_t is 8 bytes, but LOCATION is only one byte)

agner
Site Admin
Posts: 75
Joined: 2019-12-27, 18:56:25
Contact:

Re: ARMV8 fundamental data type atomicity

Post by agner » 2021-12-11, 6:05:42

I don't know. ARM is off-topic here.
You may post the question at stackoverflow.com

hankin
Posts: 3
Joined: 2021-12-10, 13:29:25

Re: ARMV8 fundamental data type atomicity

Post by hankin » 2021-12-20, 11:36:13

I have done some research about this topic. For aligned fundamental data type, it is atomic to access. In the document《Arm® Architecture Reference Manual Armv8, for A-profile architecture》, it is called single-copy atomic.

Post Reply