Remix.run Logo
muvlon 3 days ago

That being said, x86_64 has supported 128-bit atomic writes via cmpxchg16b for over a decade. Modern 64-bit ARM has several ways to do them as well.

Probably still not widespread enough for OpenJDK to unconditionally assume it's supported, but I think we're getting there. (Is there "caniuse" for CPU features?)

Coelacanthus a day ago | parent [-]

cmpxchg16b can only handle 64bits data correctly because of ABA problem.