Re: 回复:RFD: Can we remove the deprecated internal Unsafe *Object* methods?
Alan Bateman
Alan.Bateman at oracle.com
Wed Mar 6 14:03:37 UTC 2024
On 06/03/2024 10:56, wenshao wrote:
> Many libraries use Unsafe to improve performance, especially in many
> performance-critical scenarios of big data, such as Apache
> Flink/Apache Arrow, etc. Direct removal will make it difficult to
> adopt the new version of JDK.
>
> It is recommended to use it similar to JEP 396, which needs to be
> opened through parameters before it can be used and configured. The
> JVM startup parameter "--illegal-unsafe=warn" can be enabled.
>
> Removal should be after JDK 26.
This discussion is about the JDK's internal Unsafe, not sun.misc.Unsafe.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240306/6f4b1d27/attachment-0001.htm>
More information about the core-libs-dev
mailing list