test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/InstanceCounts/instanceCounts001/instanceCounts001.java
equal
deleted
inserted
replaced
59 * Also, test performs check for case when incorrect data is sent in command: |
59 * Also, test performs check for case when incorrect data is sent in command: |
60 * - create command with refTypesCount < 0, expect ILLEGAL_ARGUMENT error |
60 * - create command with refTypesCount < 0, expect ILLEGAL_ARGUMENT error |
61 * Finally, debugger sends debuggee signal to quit, waits for it exits |
61 * Finally, debugger sends debuggee signal to quit, waits for it exits |
62 * and exits too with the proper exit code. |
62 * and exits too with the proper exit code. |
63 * |
63 * |
|
64 * @requires vm.gc != "Z" |
64 * @library /vmTestbase /test/hotspot/jtreg/vmTestbase |
65 * @library /vmTestbase /test/hotspot/jtreg/vmTestbase |
65 * /test/lib |
66 * /test/lib |
66 * @run driver jdk.test.lib.FileInstaller . . |
67 * @run driver jdk.test.lib.FileInstaller . . |
67 * @build nsk.jdwp.VirtualMachine.InstanceCounts.instanceCounts001.instanceCounts001 |
68 * @build nsk.jdwp.VirtualMachine.InstanceCounts.instanceCounts001.instanceCounts001 |
68 * nsk.jdwp.VirtualMachine.InstanceCounts.instanceCounts001.instanceCounts001a |
69 * nsk.jdwp.VirtualMachine.InstanceCounts.instanceCounts001.instanceCounts001a |
162 pipe.println(instanceCounts001a.COMMAND_CREATE_TEST_INSTANCES); |
163 pipe.println(instanceCounts001a.COMMAND_CREATE_TEST_INSTANCES); |
163 |
164 |
164 if (!isDebuggeeReady()) |
165 if (!isDebuggeeReady()) |
165 return; |
166 return; |
166 |
167 |
|
168 // Note! This test is broken, in the sense that it incorrectly assumes |
|
169 // that no GC can happen before it walks the heap. In practice, it seems |
|
170 // to only affect this test when using ZGC. However, this test will also |
|
171 // fail when using other GCs if an explicit GC is done here. |
|
172 |
167 int expectedCount = instanceCounts001a.expectedCount; |
173 int expectedCount = instanceCounts001a.expectedCount; |
168 |
174 |
169 String classNames[]; |
175 String classNames[]; |
170 |
176 |
171 classNames = new String[] { createTypeSignature(testClass1) }; |
177 classNames = new String[] { createTypeSignature(testClass1) }; |