RFR 6987597: ManagementFactory.getGarbageCollectorMXBeans() returns empty list with CMS

Jaroslav Bachorik jaroslav.bachorik at oracle.com
Tue Nov 19 06:23:04 PST 2013


Please, review this test fix.

Issue : https://bugs.openjdk.java.net/browse/JDK-6987597
Webrev: http://cr.openjdk.java.net/~jbachorik/6987597/webrev.03

The fix moves the execution of the test routine to the 
GarbageCollectorMXBean notification handler - at that moment it's 
certain that GC has already happened and it is safe to assert the data 
provided by the MBean.

Thanks,

-JB-


More information about the serviceability-dev mailing list