@@ -55,11 +55,11 @@ agentClasses); String appJar = ClassFileInstaller.writeJar("LockDuringDumpApp.jar", appClasses); - for (int i = 0; i < 3; i++) { + for (int i = 0; i < 2; i++) { // i = 0 -- dump without agent // i = 1 -- dump with agent String agentArg = (i == 0) ? "-showversion" : "-javaagent:" + agentJar; String agentArg2 = (i == 0) ? "-showversion" : "-XX:+AllowArchivingWithJavaAgent";