JEP proposed to target JDK 23: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

Mark Reinhold mark.reinhold at oracle.com
Mon May 20 20:20:25 UTC 2024


The following JEP is proposed to target JDK 23:

  471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal
       https://openjdk.org/jeps/471

  Summary: Deprecate the memory-access methods in sun.misc.Unsafe for
  removal in a future release.  These unsupported methods have 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.

Feedback on this proposal from JDK Project Committers and Reviewers [1]
is more than welcome, as are reasoned objections.  If no such objections
are raised by 23:59 UTC on Monday, 27 May, or if they’re raised and
then satisfactorily answered, then per the JEP 2.0 process proposal [2]
I’ll target this JEP to JDK 23.

- Mark


[1] https://openjdk.org/census#jdk
[2] https://cr.openjdk.java.net/~mr/jep/jep-2.0-02.html


More information about the jdk-dev mailing list