logoalt Hacker News

anematodetoday at 2:58 AM2 repliesview on HN

Ah, that's a great hypothesis. I wonder, then, how it works with x86 emulation on ARM. IIRC, atomic ops on ARM fault if the address isn't naturally aligned... but I guess the runtime could intercept that and handle it slowly.


Replies

omcnoetoday at 4:34 AM

ARM macs apparently have some kind of specific handling in place for this when a process is running with x86_64 compatibility, but it’s not publicly documented anywhere that I can see.

show 1 reply
BobbyTables2today at 3:05 AM

An emulated x86 atomic instruction wouldn’t need to use atomic instructions on ARM.

show 1 reply