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

Gunnar Morling github.com+28612+gunnarmorling at openjdk.java.net
Mon Nov 30 17:18:53 UTC 2020


On Sun, 1 Nov 2020 09:57:57 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!

This pull request has now been integrated.

Changeset: 7127e403
Author:    Gunnar Morling <gunnar.morling at googlemail.com>
Committer: Guru Hb <ghb at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/7127e403
Stats:     292 lines in 8 files changed: 203 ins; 75 del; 14 mod

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

Reviewed-by: hirt

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

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


More information about the jmc-dev mailing list