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

Alan Bateman alanb at openjdk.org
Mon May 13 11:06:04 UTC 2024


On Mon, 13 May 2024 10:30:43 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> Some of the deprecated methods are very likely to be run in hot loops (e.g. read/store operations). Unless we set `--sun-misc-unsafe-memory-access=allow`, what would be the performance impact on various platforms for these operations?

The intention is that there isn't any impact for the initial default ("allow"), and in the future "warn" after the first waning. If the "debug" value is used then there is a stack trace printed but that's not something for production use.

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

PR Comment: https://git.openjdk.org/jdk/pull/19174#issuecomment-2107279163


More information about the core-libs-dev mailing list