changeset 51006:42ed6e9af319

8204160: BiasedLockingTest needs -XX:+UseBiasedLocking Reviewed-by: eosterlund, dholmes
author stefank
date Tue, 05 Jun 2018 15:56:07 +0200
parents bf7eb61349d2
children 4602de5feb24
files test/hotspot/jtreg/runtime/logging/BiasedLockingTest.java
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);