RFR: 9999: Automatically open base module for accessing Unsafe on JDK 11+

Guru Hb ghb at openjdk.java.net
Tue Nov 3 03:38:51 UTC 2020


On Mon, 2 Nov 2020 07:36:29 GMT, Gunnar Morling <github.com+28612+gunnarmorling at openjdk.org> wrote:

>> Note that based on this I think it should also be possible to obtain a `MethodHandles.Lookup` with the private access in target packages which is required for using the publicly supported `MethodHandles` API instead of `Unsafe`.
>
> @thegreystone, so that's ready for review from my PoV.
> 
> While not removing the need for `Unsafe` on JDK 11+ (there's my other WIP PR for that), it's a good intermediary improvement over the current situation, as it avoids the need for the user to specify the `--add-opens` option themselves. Could you log an issue so I can reference it in the commit message? Thanks!

Please change title of this pull request matching to https://bugs.openjdk.java.net/browse/JMC-6964

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

PR: https://git.openjdk.java.net/jmc/pull/152


More information about the jmc-dev mailing list