InfoQ Homepage Java Unsafe Content on InfoQ
News
RSS Feed-
JEP 456: Preparing for the Removal of Unsafe Memory-Access Methods
JEP 471, Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal, has been delivered for JDK 23. This JEP proposes to deprecate the memory access methods in the Unsafe class for removal in a future release. These unsupported methods have been superseded by standard APIs: JEP 193, Variable Handles, delivered in JDK 9; and JEP 454, Foreign Function & Memory API, delivered in JDK 22.
-
Oracle's OpenJDK Cleanup of "Unsafe" Implementation
As Java 9 approaches general availability, many of the defining JEPs are starting to take final shape. JEP 260 (Encapsulate Most Internal APIs) proposes to expose the functionality of the controversial sun.misc.Unsafe class via variable handles, and a new posting to the JDK Bug tracker proposes further optimizations and cleanups for Unsafe.