< prev index next >
test/hotspot/jtreg/compiler/valhalla/valuetypes/ValueTypeTest.java
Print this page
*** 103,112 ****
--- 103,113 ----
public static final long rL = Utils.getRandomInstance().nextLong() % 1000;
// User defined settings
protected static final boolean XCOMP = Platform.isComp();
private static final boolean PRINT_GRAPH = true;
+ private static final boolean VERBOSE = Boolean.parseBoolean(System.getProperty("Verbose", "false"));
private static final boolean PRINT_TIMES = Boolean.parseBoolean(System.getProperty("PrintTimes", "false"));
private static boolean VERIFY_IR = Boolean.parseBoolean(System.getProperty("VerifyIR", "true")) && !TEST_C1 && !XCOMP;
private static final boolean VERIFY_VM = Boolean.parseBoolean(System.getProperty("VerifyVM", "false"));
private static final String SCENARIOS = System.getProperty("Scenarios", "");
private static final String TESTLIST = System.getProperty("Testlist", "");
*** 564,573 ****
--- 565,577 ----
}
// Execute tests
TreeMap<Long, String> durations = PRINT_TIMES ? new TreeMap<Long, String>() : null;
for (Method test : tests.values()) {
+ if (VERBOSE) {
+ System.out.println("Starting " + test.getName());
+ }
long startTime = System.nanoTime();
Method verifier = getClass().getMethod(test.getName() + "_verifier", boolean.class);
// Warmup using verifier method
Warmup anno = test.getAnnotation(Warmup.class);
int warmup = anno == null ? WARMUP : anno.value();
*** 578,591 ****
// Trigger compilation
WHITE_BOX.enqueueMethodForCompilation(test, compLevel);
Asserts.assertTrue(!USE_COMPILER || WHITE_BOX.isMethodCompiled(test, false), test + " not compiled");
// Check result
verifier.invoke(this, false);
! if (PRINT_TIMES) {
long endTime = System.nanoTime();
long duration = (endTime - startTime);
durations.put(duration, test.getName());
}
}
// Print execution times
if (PRINT_TIMES) {
--- 582,598 ----
// Trigger compilation
WHITE_BOX.enqueueMethodForCompilation(test, compLevel);
Asserts.assertTrue(!USE_COMPILER || WHITE_BOX.isMethodCompiled(test, false), test + " not compiled");
// Check result
verifier.invoke(this, false);
! if (PRINT_TIMES || VERBOSE) {
long endTime = System.nanoTime();
long duration = (endTime - startTime);
durations.put(duration, test.getName());
+ if (VERBOSE) {
+ System.out.println("Done " + test.getName() + ": " + duration + "ms");
+ }
}
}
// Print execution times
if (PRINT_TIMES) {
< prev index next >