Skip to content
Snippets Groups Projects
Commit e291bfa5 authored by Amos Shi's avatar Amos Shi
Browse files

8314837: 5 compiled/codecache tests ignore VM flags

Backport-of: 2a11bc41baec20cf670393ff29689043ed2d2114
parent 7b205d6c
Branches
Tags
No related merge requests found
...@@ -28,9 +28,7 @@ ...@@ -28,9 +28,7 @@
* @library /test/lib * @library /test/lib
* @requires vm.debug * @requires vm.debug
* *
* @run driver jdk.test.lib.helpers.ClassFileInstaller * @run driver compiler.codecache.CheckCodeCacheInfo
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* compiler.codecache.CheckCodeCacheInfo
*/ */
package compiler.codecache; package compiler.codecache;
...@@ -69,7 +67,7 @@ public class CheckCodeCacheInfo { ...@@ -69,7 +67,7 @@ public class CheckCodeCacheInfo {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
ProcessBuilder pb; ProcessBuilder pb;
pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintCodeCache", pb = ProcessTools.createTestJvm("-XX:+PrintCodeCache",
"-XX:+Verbose", "-XX:+Verbose",
"-version"); "-version");
OutputAnalyzer out = new OutputAnalyzer(pb.start()); OutputAnalyzer out = new OutputAnalyzer(pb.start());
......
...@@ -33,6 +33,7 @@ import jdk.test.lib.process.ProcessTools; ...@@ -33,6 +33,7 @@ import jdk.test.lib.process.ProcessTools;
* @test * @test
* @bug 8276036 8277213 8277441 * @bug 8276036 8277213 8277441
* @summary test for the value of full_count in the message of insufficient codecache * @summary test for the value of full_count in the message of insufficient codecache
* @requires vm.compMode != "Xint"
* @library /test/lib * @library /test/lib
*/ */
public class CodeCacheFullCountTest { public class CodeCacheFullCountTest {
...@@ -54,7 +55,7 @@ public class CodeCacheFullCountTest { ...@@ -54,7 +55,7 @@ public class CodeCacheFullCountTest {
} }
public static void runTest() throws Throwable { public static void runTest() throws Throwable {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( ProcessBuilder pb = ProcessTools.createTestJvm(
"-XX:ReservedCodeCacheSize=2496k", "-XX:-UseCodeCacheFlushing", "CodeCacheFullCountTest", "WasteCodeCache"); "-XX:ReservedCodeCacheSize=2496k", "-XX:-UseCodeCacheFlushing", "CodeCacheFullCountTest", "WasteCodeCache");
OutputAnalyzer oa = ProcessTools.executeProcess(pb); OutputAnalyzer oa = ProcessTools.executeProcess(pb);
// Ignore adapter creation failures // Ignore adapter creation failures
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* @test * @test
* @bug 8015774 * @bug 8015774
* @summary Verify SegmentedCodeCache option's processing * @summary Verify SegmentedCodeCache option's processing
* @requires vm.flagless
* @library /test/lib / * @library /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.compiler * java.compiler
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* @key randomness * @key randomness
* @bug 8015774 * @bug 8015774
* @summary Verify processing of options related to code heaps sizing. * @summary Verify processing of options related to code heaps sizing.
* @requires vm.flagless
* @library /test/lib / * @library /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.compiler * java.compiler
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* @test * @test
* @bug 8015774 * @bug 8015774
* @summary Verify that PrintCodeCache option print correct information. * @summary Verify that PrintCodeCache option print correct information.
* @requires vm.flagless
* @library /test/lib / * @library /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.compiler * java.compiler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment