A practical guide to thread-safe native memory access in Java using VarHandle access modes, covering Plain, Opaque, Acquire/Release, and Volatile with JCStress tests to prove each guarantee.
A simple helper class that makes Foreign Function Interface calls much nicer to work with. In this post we explore how this utility class works and how to use it effectively with records.
When I first started exploring Virtual Threads in Java, I wanted to understand everything about them like, performance characteristics, when they yield, and limitations. This journey led me to an interesting challenge about file I/O operations. These operations cause Virtual Threads to become “pinned” to platform threads, limiting their effectiveness for I/O-heavy applications. This…