Skip to content

Commit 595446b

Browse files
mychrisIgor Veresov
authored andcommitted
8269087: CheckSegmentedCodeCache test fails in an emulated-client VM
Reviewed-by: iveresov, kvn
1 parent 7c31903 commit 595446b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private static void verifySegmentedCodeCache(ProcessBuilder pb, boolean enabled)
5858
out.shouldContain(NON_METHOD);
5959
} catch (RuntimeException e) {
6060
// Check if TieredCompilation is disabled (in a client VM)
61-
if (!out.getOutput().contains("-XX:+TieredCompilation not supported in this VM")) {
61+
if (Platform.isTieredSupported()) {
6262
// Code cache is not segmented
6363
throw new RuntimeException("No code cache segmentation.");
6464
}

0 commit comments

Comments
 (0)