changeset 16635:825a12434329

8171149: java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java failed with "Out of space in CodeCache for adapters" Reviewed-by: kvn
author dpochepk
date Mon, 23 Jan 2017 16:31:49 +0300
parents 79dbfcdbe1b0
children 33e6f9b9e3b5
files test/java/lang/invoke/LFCaching/LambdaFormTestCase.java test/lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/CodeCacheOverflowProcessor.java
diffstat 2 files changed, 7 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/invoke/LFCaching/LambdaFormTestCase.java	Fri Jan 20 04:42:29 2017 -0800
+++ b/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/test/lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/CodeCacheOverflowProcessor.java	Fri Jan 20 04:42:29 2017 -0800
+++ b/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;
     }