Monitoring Java Safepoint Time in JDK16+
David Holmes
david.holmes at oracle.com
Thu Jun 17 05:59:17 UTC 2021
On 17/06/2021 3:15 pm, Alan Bateman wrote:
> On 17/06/2021 02:39, David Holmes wrote:
>>
>> In what way does this no longer work? We have a test in
>> jdk/sun/management/HotspotRuntimeMBean/GetTotalSafepointTime.java that
>> uses this API and doesn't seem to need to do anything to allow access. ??
> That test is compiled/run with `--add-exports
> java.management/sun.management=ALL-UNNAMED`, just not immediately
> obvious because the TEST.properties with the config for jtreg is in the
> parent directory (it applies to tests in that directory and all
> sub-directories). Carter would have need the equivalent to compile with
> JDK 9+ and to run with JDK 16+.
Ah! Thanks Alan!
David
-----
> -Alan.
More information about the serviceability-dev
mailing list