8269087: CheckSegmentedCodeCache test fails in an emulated-client VM

Reviewed-by: iveresov, kvn
This commit is contained in:
Christoph Göttschkes 2021-06-24 16:49:45 +00:00 committed by Igor Veresov
parent 7c31903dd3
commit 595446bff4

@ -58,7 +58,7 @@ public class CheckSegmentedCodeCache {
out.shouldContain(NON_METHOD);
} catch (RuntimeException e) {
// Check if TieredCompilation is disabled (in a client VM)
if (!out.getOutput().contains("-XX:+TieredCompilation not supported in this VM")) {
if (Platform.isTieredSupported()) {
// Code cache is not segmented
throw new RuntimeException("No code cache segmentation.");
}