Skip to content

Commit 67b57e0

Browse files
author
Amos Shi
committed
8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError
Backport-of: d1de3d082ef9b83aaa68664e653ab09feb8bad87
1 parent 13f6ab3 commit 67b57e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -57,7 +57,11 @@ public static void runTest() throws Throwable {
5757
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
5858
"-XX:ReservedCodeCacheSize=2496k", "-XX:-UseCodeCacheFlushing", "CodeCacheFullCountTest", "WasteCodeCache");
5959
OutputAnalyzer oa = ProcessTools.executeProcess(pb);
60-
oa.shouldHaveExitValue(0);
60+
// Ignore adapter creation failures
61+
if (oa.getExitValue() != 0 && !oa.getStderr().contains("Out of space in CodeCache for adapters")) {
62+
oa.reportDiagnosticSummary();
63+
throw new RuntimeException("VM finished with exit code " + oa.getExitValue());
64+
}
6165
String stdout = oa.getStdout();
6266

6367
Pattern pattern = Pattern.compile("full_count=(\\d)");

0 commit comments

Comments
 (0)