< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/InstanceCounts/instanceCounts001/instanceCounts001.java
Print this page
*** 163,176 ****
pipe.println(instanceCounts001a.COMMAND_CREATE_TEST_INSTANCES);
if (!isDebuggeeReady())
return;
! // Note!
! // Test broken - assumes that no GC is run before heap walk.
! // G1 fails, just like ZGC, if en explicitly GC is done here.
! // forceGC();
int expectedCount = instanceCounts001a.expectedCount;
String classNames[];
--- 163,176 ----
pipe.println(instanceCounts001a.COMMAND_CREATE_TEST_INSTANCES);
if (!isDebuggeeReady())
return;
! // Note! This test is broken, in the sense that it incorrectly assumes
! // that no GC can happen before it walks the heap. In practice, it seems
! // to only affect this test when using ZGC. However, this test will also
! // fail when using other GCs if an explicit GC is done here.
int expectedCount = instanceCounts001a.expectedCount;
String classNames[];
< prev index next >