8266190: mark hotspot compiler/codecache tests which ignore VM flags

Reviewed-by: kvn
This commit is contained in:
Igor Ignatyev 2021-04-28 18:47:19 +00:00
parent d12e01a5cd
commit 3f9879f1cd
3 changed files with 7 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,8 +27,7 @@
* @summary Test checks that the order in which ReversedCodeCacheSize and * @summary Test checks that the order in which ReversedCodeCacheSize and
* InitialCodeCacheSize are passed to the VM is irrelevant. * InitialCodeCacheSize are passed to the VM is irrelevant.
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @requires vm.flagless
* java.management
* *
* @run driver compiler.codecache.CheckReservedInitialCodeCacheSizeArgOrder * @run driver compiler.codecache.CheckReservedInitialCodeCacheSizeArgOrder
*/ */

View File

@ -26,8 +26,7 @@
* @bug 8015774 * @bug 8015774
* @summary Checks VM options related to the segmented code cache * @summary Checks VM options related to the segmented code cache
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @requires vm.flagless
* java.management
* *
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
@ -59,10 +58,10 @@ public class CheckSegmentedCodeCache {
out.shouldContain(NON_METHOD); out.shouldContain(NON_METHOD);
} catch (RuntimeException e) { } catch (RuntimeException e) {
// Check if TieredCompilation is disabled (in a client VM) // Check if TieredCompilation is disabled (in a client VM)
if(!out.getOutput().contains("-XX:+TieredCompilation not supported in this VM")) { if (!out.getOutput().contains("-XX:+TieredCompilation not supported in this VM")) {
// Code cache is not segmented // Code cache is not segmented
throw new RuntimeException("No code cache segmentation."); throw new RuntimeException("No code cache segmentation.");
} }
} }
} else { } else {
out.shouldNotContain(NON_METHOD); out.shouldNotContain(NON_METHOD);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,8 +26,7 @@
* @bug 8015635 * @bug 8015635
* @summary Test ensures that the ReservedCodeCacheSize is at most MAXINT * @summary Test ensures that the ReservedCodeCacheSize is at most MAXINT
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @requires vm.flagless
* java.management
* *
* @run driver compiler.codecache.CheckUpperLimit * @run driver compiler.codecache.CheckUpperLimit
*/ */