Java 9 VarHandles Best practices, and why? by Tobi Ajila
Have you ever had to dig for sun.misc.Unsafe to get access to CompareAndSwap? Are you interested in eking out the last bit of parallelism from your code? VarHandles in Java 9 enable memory ordering and atomic operations on any field type. With more granularity in the memory ordering modes, Java programmers can improve the potential parallelism of their applications, while also getting the benefits of a Safe API.
Learn the best practices for using VarHandles in your code, and how the JVM…Tags: Ajila, coding, Devoxx, DV17, java, java tips to improve performance, Practices, Tobi, VarHandles