New candidate JEP: 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
Mark Reinhold
mark.reinhold at oracle.com
Tue Nov 12 14:55:19 UTC 2024
https://openjdk.org/jeps/498
Summary: Issue a warning at run time on the first occasion that any
memory-access method in sun.misc.Unsafe is invoked. All of these
unsupported methods were terminally deprecated in JDK 23. They have
been been superseded by standard APIs, namely the VarHandle API
(JEP 193, JDK 9) and the Foreign Function & Memory API (JEP 454,
JDK 22). We strongly encourage library developers to migrate from
sun.misc.Unsafe to supported replacements, so that applications can
migrate smoothly to modern JDK releases.
- Mark
More information about the jdk-dev
mailing list