Skip to content
Permalink
Browse files
8262000: jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithParall…
…elScavenge.java failed with "OutOfMemoryError: Java heap space"

Reviewed-by: tschatzl, egahlin
  • Loading branch information
lkorinth committed Mar 4, 2021
1 parent 94f26e4 commit d2c4ed08a2f78c22e4d59b6c29d29abf3202199d
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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 static boolean execute(String settings, String jfrFilename, String[] addi
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;
}

0 comments on commit d2c4ed0

Please sign in to comment.