--- old/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java 2015-07-20 14:23:47.204992051 +0300 +++ new/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java 2015-07-20 14:23:46.972992046 +0300 @@ -168,6 +168,9 @@ try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { + if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { + throw new Error(ex); + } testCase.assertCatch(ex); returned = ex; }