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

Reply via email to