RFD: Can we remove per-thread compiler stats now?

Eirik Bjørsnøs eirbjo at gmail.com
Thu Mar 14 17:06:09 UTC 2024


Hello,

Per-thread compiler performance counters were removed in JDK-8134607 [1]
(JDK 9). The corresponding sun.management API was marked @Deprecated since
it no longer returns any useful counter data.

Has time come to remove this API now?

My understanding is that since sun.management is an internal package this
should be low risk. But this being JMX-related, is there maybe some concern
to this being used in some remote/RMI scenario?

If not, I'd like to propose a PR to remove the following:

* Class sun.management.CompilerThreadStat
* Nested class sun.management.HotspotCompilation.CompilerThreadInfo
* Field sun.management.HotspotCompilation.threads and its initialization
* Method sun.management.HotspotCompilation.getCompilerThreadStats() and its
definition in HotspotCompilationMBean

Let me know what you think

Cheers,
Eirik :-)

[1] https://bugs.openjdk.org/browse/JDK-8134607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/serviceability-dev/attachments/20240314/9b5182a0/attachment.htm>


More information about the serviceability-dev mailing list