8130006: java/lang/invoke/MethodHandles/CatchExceptionTest Fails
authorkshefov
Thu, 23 Jul 2015 16:46:54 +0300
changeset 31821 2bd5e805e5f1
parent 31820 f8214072b376
child 31822 cab0727bdb53
8130006: java/lang/invoke/MethodHandles/CatchExceptionTest Fails Reviewed-by: psandoz
jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java
--- a/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Wed Jul 22 21:11:38 2015 -0700
+++ b/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Thu Jul 23 16:46:54 2015 +0300
@@ -168,6 +168,11 @@
         try {
             returned = target.invokeWithArguments(args);
         } catch (Throwable ex) {
+            if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) {
+                // This error will be treated by CodeCacheOverflowProcessor
+                // to prevent the test from failing because of code cache overflow.
+                throw new Error(ex);
+            }
             testCase.assertCatch(ex);
             returned = ex;
         }