RFR: 8286441: Remove mode parameter from jdk.internal.perf.Perf.attach()

Ioi Lam iklam at openjdk.java.net
Wed May 11 02:52:47 UTC 2022


On Tue, 10 May 2022 20:03:45 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> I skimmed through the changes and I think they look okay. In the distant past there were tools outside of the JDK that used the jvmstat API directly. It's possible that VisualVM still does but it would only compile/run if --add-exports is used to export the sun.jvmstat.* packages. So it might be that dropping the parameter from a method in RemoteHost is noticed and I think that is okay because this package is not exported and is not meant to be used by code outside of the JDK.

The APIs changed by this PR are:

- sun.jvmstat.monitor.remote.RemoteHost::attachVm
- sun.jvmstat.monitor.VmIdentifier::getMode
- sun.jvmstat.monitor.HostIdentifier::getMode
- jdk.internal.perf.Perf::attach

I checked the latest VisualVM source code. Some of the above classes are referenced, but none of the affected APIs are called.

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

PR: https://git.openjdk.java.net/jdk/pull/8622


More information about the core-libs-dev mailing list