8171149: java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java failed with "Out of space in CodeCache for adapters"
Reviewed-by: kvn
--- a/jdk/test/java/lang/invoke/LFCaching/LambdaFormTestCase.java Fri Jan 20 04:42:29 2017 -0800
+++ b/jdk/test/java/lang/invoke/LFCaching/LambdaFormTestCase.java Mon Jan 23 16:31:49 2017 +0300
@@ -141,16 +141,6 @@
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 @@
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);
+ }
}
}
--- a/jdk/test/lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/CodeCacheOverflowProcessor.java Fri Jan 20 04:42:29 2017 -0800
+++ b/jdk/test/lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/CodeCacheOverflowProcessor.java Mon Jan 23 16:31:49 2017 +0300
@@ -72,7 +72,6 @@
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;
}