test/gc/stress/systemgc/TestSystemGC.java
Print this page
*** 27,36 ****
--- 27,38 ----
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
+ import jdk.test.lib.Platform;
+
final class ThreadUtils {
public static void sleep(long durationMS) {
try {
Thread.sleep(durationMS);
} catch (Exception e) {
*** 180,190 ****
ThreadUtils.sleep(1000);
}
}
public static void main(String[] args) {
! // First allocate the long lived objects and then run all phases twice.
populateLongLived();
runAllPhases();
- runAllPhases();
}
}
--- 182,191 ----
ThreadUtils.sleep(1000);
}
}
public static void main(String[] args) {
! // First allocate the long lived objects and then run all phases.
populateLongLived();
runAllPhases();
}
}