Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 d2c4ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down Expand Up @@ -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;
}

Expand Down

1 comment on commit d2c4ed0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.