RFR: 8342380: Implement JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe [v3]
Chen Liang
liach at openjdk.org
Mon Nov 25 19:12:18 UTC 2024
On Mon, 18 Nov 2024 09:42:20 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Change default value of the command line option --sun-misc-unsafe-memory-access from "allow" to "warn".
>
> Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains six commits:
>
> - Merge branch 'master' into JDK-8342380
> - Merge branch 'master' into JDK-8342380
> - Update test
> - Merge branch 'master' into JDK-8342380
> - Update usage/man page
> - Initial commit
I noted that `sun.misc.Unsafe` is currently missing warnings for `arrayIndexScale` and `addressSize` deprecated in JEP 471. Without warnings, developers may miss these two methods for migration.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21762#issuecomment-2498827300
More information about the core-libs-dev
mailing list