RFR: 8331670: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

Alan Bateman alanb at openjdk.org
Wed May 15 12:50:04 UTC 2024


On Wed, 15 May 2024 10:18:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> The FFM code throws if an unknown value is passed. Here we log. Should we try to be more consistent?

I don't have a strong opinion on this. The value of --illegal-native-access is examined during startup so startup can fail if a bad value is specified. Here it is mid-flight when Unsafe initialises. The coin toss landed on printing a warning but it could equally fail. I jus didn't want code executing during startup to check configuration for something faraway in the jdk.unsupported module.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19174#discussion_r1601582672


More information about the core-libs-dev mailing list