RFR: 8368527: JMX: Add an MXBeans method to query GC CPU time [v10]

Kevin Walls kevinw at openjdk.org
Fri Nov 14 12:11:11 UTC 2025


On Fri, 14 Nov 2025 11:08:40 GMT, Jonas Norlinder <duke at openjdk.org> wrote:

> I think it is required for the shutdown test and we need to keep them all. However, we may omit this for the trivial API test. Would that be a reasonable compromise? I'd suggest to keep Epsilon and G1 for `TestGetTotalGcCpuTime`.

OK that's great to cut it down a bit, thanks.  I meant I think we need to remove all the specific GCs from that test, and let the test harness run with the variety of collectors.  If test/jdk/java/lang/management/MemoryMXBean/TestGetTotalGcCpuTime.java specifies those two, doesn't it only run with those two?  We want most code to be tested with a variety of collectors, we should get that if we just say nothing. 8-)

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

PR Comment: https://git.openjdk.org/jdk/pull/27537#issuecomment-3532441029


More information about the hotspot-dev mailing list