From 979a482a1d2947dace98f83a8f250c7ad90d7f18 Mon Sep 17 00:00:00 2001 From: kshefov Date: Fri, 24 Jul 2015 12:49:01 +0300 Subject: [PATCH] 8130006: java/lang/invoke/MethodHandles/CatchExceptionTest Fails Reviewed-by: psandoz --- test/java/lang/invoke/MethodHandles/CatchExceptionTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java b/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java index ecfca10ed..408cf9934 100644 --- a/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java +++ b/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java @@ -168,6 +168,11 @@ public class CatchExceptionTest { 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; } -- GitLab