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
Tue May 28 11:51:22 UTC 2024


2024/5/20 16:20:25 -0400, mark.reinhold at oracle.com:
> 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 (JEP193,
>   JDK9) and the Foreign Function & Memory API (JEP454, JDK22).  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.

Hearing no objections, I’ve targeted this JEP to JDK 23.

- Mark


More information about the jdk-dev mailing list