changeset 10994:d72185e50179

8130006: java/lang/invoke/MethodHandles/CatchExceptionTest Fails Reviewed-by: psandoz
author kshefov
date Fri, 24 Jul 2015 12:49:01 +0300
parents d8210091911b
children 4403161a2a7e
files test/java/lang/invoke/MethodHandles/CatchExceptionTest.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Thu Jul 23 18:17:35 2015 +0400
+++ b/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Fri Jul 24 12:49:01 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;
         }