mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 04:00:16 +00:00
8171149: java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java failed with "Out of space in CodeCache for adapters"
Reviewed-by: kvn
This commit is contained in:
parent
a70d3ad619
commit
a1d6b9fa8b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user