4 ms·
Check out the difference between LLVM's NotAtomic (C++) and Unordered (Java) here: https://llvm.org/docs/Atomics.html#notatomic https://llvm.org/docs/Atomics.ht
by muizelaar 3y ago
Check out the difference between LLVM's NotAtomic (C++) and Unordered (Java) here: https://llvm.org/docs/Atomics.html#notatomic https://llvm.org/docs/Atomics.html#notatomic
- layer8 3y agoOk, so it seems that the Java semantics can be expensive in cases like 64-bits-wide pointers on ARM. However, pointers (object references) in Java usually only are 32 bits wide by default, due to using a compressed pointer format.