8171149: java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java failed with "Out of space in CodeCache for adapters"

Reviewed-by: kvn
This commit is contained in:
Dmitrij Pochepko 2017-01-23 16:31:49 +03:00
parent a70d3ad619
commit a1d6b9fa8b
2 changed files with 7 additions and 12 deletions

View File

@ -141,16 +141,6 @@ public abstract class LambdaFormTestCase {
doneIterations++;
return true;
}
void checkPassed() {
if (!passed) {
throw new Error(String.format("%d of %d test cases FAILED! %n"
+ "Rerun the test with the same \"-Dseed=\" option as in the log file!",
failCounter, testCounter));
} else {
System.err.printf("All %d test cases PASSED!%n", testCounter);
}
}
}
/**
@ -195,6 +185,12 @@ public abstract class LambdaFormTestCase {
System.err.println("FAILED");
throw new Error("Unexpected error!", ex);
}
run.checkPassed();
if (!run.passed) {
throw new Error(String.format("%d of %d test cases FAILED! %n"
+ "Rerun the test with the same \"-Dseed=\" option as in the log file!",
run.failCounter, run.testCounter));
} else {
System.err.printf("All %d test cases PASSED!%n", run.testCounter);
}
}
}

View File

@ -72,7 +72,6 @@ public class CodeCacheOverflowProcessor {
if (t != null) {
System.err.printf("%nNon-critical exception caught becuse of"
+ " code cache size is not enough to run all test cases.%n%n");
t.printStackTrace();
}
return t;
}