8204160: BiasedLockingTest needs -XX:+UseBiasedLocking
authorstefank
Tue, 05 Jun 2018 15:56:07 +0200
changeset 50402 42ed6e9af319
parent 50401 bf7eb61349d2
child 50403 4602de5feb24
8204160: BiasedLockingTest needs -XX:+UseBiasedLocking Reviewed-by: eosterlund, dholmes
test/hotspot/jtreg/runtime/logging/BiasedLockingTest.java
--- a/test/hotspot/jtreg/runtime/logging/BiasedLockingTest.java	Tue Jun 05 09:15:03 2018 -0400
+++ b/test/hotspot/jtreg/runtime/logging/BiasedLockingTest.java	Tue Jun 05 15:56:07 2018 +0200
@@ -48,22 +48,26 @@
     }
 
     public static void main(String[] args) throws Exception {
-        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:biasedlocking",
+        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseBiasedLocking",
+                                                                  "-Xlog:biasedlocking",
                                                                   "-XX:BiasedLockingStartupDelay=0",
                                                                   InnerClass.class.getName());
         analyzeOutputOn(pb);
 
-        pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceBiasedLocking",
+        pb = ProcessTools.createJavaProcessBuilder("-XX:+UseBiasedLocking",
+                                                   "-XX:+TraceBiasedLocking",
                                                    "-XX:BiasedLockingStartupDelay=0",
                                                    InnerClass.class.getName());
         analyzeOutputOn(pb);
 
-        pb = ProcessTools.createJavaProcessBuilder("-Xlog:biasedlocking=off",
+        pb = ProcessTools.createJavaProcessBuilder("-XX:+UseBiasedLocking",
+                                                   "-Xlog:biasedlocking=off",
                                                    "-XX:BiasedLockingStartupDelay=0",
                                                    InnerClass.class.getName());
         analyzeOutputOff(pb);
 
-        pb = ProcessTools.createJavaProcessBuilder("-XX:-TraceBiasedLocking",
+        pb = ProcessTools.createJavaProcessBuilder("-XX:+UseBiasedLocking",
+                                                   "-XX:-TraceBiasedLocking",
                                                    "-XX:BiasedLockingStartupDelay=0",
                                                    InnerClass.class.getName());
         analyzeOutputOff(pb);