News for hackers. Stuff that matters.
Re:JDK 8 Release Notes by smikhanov on Tuesday March 18, 2014 @06:15PM (#7425430)
Could you please elaborate on #5? What you mean there is the fact that AtomicInteger implementation is actually using this primitives on your target platform, correct?
Re:JDK 8 Release Notes by pron on Tuesday March 18, 2014 @06:19PM (#7425453)
It's more than that. AtomicInteger's implementation uses JVM intrinsics which are calls to methods in the sun.misc.Unsafe class, that, when JITted, are replaced by a platform specific machine instruction (where available), such as CAS or a memory fence.