From d2c4ed08a2f78c22e4d59b6c29d29abf3202199d Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Thu, 4 Mar 2021 13:20:06 +0000 Subject: [PATCH] 8262000: jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithParallelScavenge.java failed with "OutOfMemoryError: Java heap space" Reviewed-by: tschatzl, egahlin --- test/jdk/jdk/jfr/event/gc/detailed/ExecuteOOMApp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/jdk/jdk/jfr/event/gc/detailed/ExecuteOOMApp.java b/test/jdk/jdk/jfr/event/gc/detailed/ExecuteOOMApp.java index 03158ea0031..048bbad017f 100644 --- a/test/jdk/jdk/jfr/event/gc/detailed/ExecuteOOMApp.java +++ b/test/jdk/jdk/jfr/event/gc/detailed/ExecuteOOMApp.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -51,7 +51,7 @@ public class ExecuteOOMApp { OutputAnalyzer out = AppExecutorHelper.executeAndRecord(settings, jfrFilename, additionalVmFlagsList.toArray(new String[0]), OOMApp.class.getName(), String.valueOf(bytesToAllocate)); - if ((out.getExitValue() == 1 && out.getOutput().contains("Exception: java.lang.OutOfMemoryError"))) { + if ((out.getExitValue() == 1 && out.getOutput().contains("java.lang.OutOfMemoryError"))) { return false; }