test/gc/stress/systemgc/TestSystemGC.java
Print this page
*** 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();
}
}
--- 180,192 ----
ThreadUtils.sleep(1000);
}
}
public static void main(String[] args) {
! // First allocate the long lived objects and then run all phases.
populateLongLived();
runAllPhases();
+ if (args.length > 0 && args[0].equals("long")) {
runAllPhases();
}
+ }
}