回复:RFD: Can we remove the deprecated internal Unsafe *Object* methods?

wenshao shaojin.wensj at alibaba-inc.com
Wed Mar 6 10:56:11 UTC 2024


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.
------------------------------------------------------------------
发件人:Alan Bateman <Alan.Bateman at oracle.com>
发送时间:2024年3月6日(星期三) 17:22
收件人:mandy.chung <mandy.chung at oracle.com>; core-libs-dev <core-libs-dev at openjdk.org>
主 题:Re: RFD: Can we remove the deprecated internal Unsafe *Object* methods?
On 05/03/2024 22:57, mandy.chung at oracle.com wrote:
> These deprecated methods were added to make jsr166.jar to run on 
> different JDK releases. I think it's time to remove these deprecated 
> xxxObject* methods as the renames have been done since JDK 12 for 5 
> years.
Yes, I think they can be removed. They aren't accessible outside of the 
JDK so nothing should be dependent on them.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240306/eb59f16d/attachment-0001.htm>


More information about the core-libs-dev mailing list