Hacker News new | ask | show | jobs
by muvlon 1 day 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?)

1 comments

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