RFR: 6964: [Agent] Automatically open base module for accessing Unsafe on JDK 11+ [v3]

Marcus Hirt hirt at openjdk.java.net
Thu Nov 26 15:01:54 UTC 2020


On Sat, 21 Nov 2020 19:52:09 GMT, Gunnar Morling <github.com+28612+gunnarmorling at openjdk.org> wrote:

>> So here's a fresh take on the `Unsafe` / `add-opens` issue for JMC Agent. This still is using `Unsafe`, but I'm using the instrumentation API for opening up the base module within the agent itself, instead of requiring the user to do so. Ideally, we'd still get away from `Unsafe`, but this make the agent easier to use. This is still a draft, would do some more polishing if you all think it's the right approach. Feedback welcome!
>
> Gunnar Morling has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
> 
>  - 6964: Refactor - Unifying handling of Java version
>  - 6964: Automatically open base module for accessing Unsafe on JDK 11+

Ok. Let's wait with the security manager stuff until someone requests it then.

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

Marked as reviewed by hirt (Lead).

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


More information about the jmc-dev mailing list