[External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 11 16:38:03 UTC 2024



On 11/06/2024 17:27, David Lloyd wrote:
> :
>
> Yes, all of the method-access methods on ReflectionFactory are used, 
> not just for readObject/writeObject but also readObjectNoData, 
> readResolve, and writeReplace, the constructor accessors, and the 
> factory methods for OptionalDataException. We don't use the static 
> initializer one though (maybe the ORB does, I'm not sure).
>
Okay, next question is whether you are also using Unsafe to access the 
fields of classes where you've got a MH to invoke the readXXX/writeXXX 
methods? Ignore SVUID for the moment.

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240611/d0a460cc/attachment.htm>


More information about the core-libs-dev mailing list