hotspot/test/compiler/rtm/locking/TestRTMTotalCountIncrRate.java
changeset 41092 c388d897472d
parent 40855 3c4c913195e3
child 41330 8b2580e63aa0
equal deleted inserted replaced
41091:de3789bb384e 41092:c388d897472d
    47 import compiler.testlibrary.rtm.predicate.SupportedCPU;
    47 import compiler.testlibrary.rtm.predicate.SupportedCPU;
    48 import compiler.testlibrary.rtm.predicate.SupportedVM;
    48 import compiler.testlibrary.rtm.predicate.SupportedVM;
    49 import jdk.internal.misc.Unsafe;
    49 import jdk.internal.misc.Unsafe;
    50 import jdk.test.lib.Asserts;
    50 import jdk.test.lib.Asserts;
    51 import jdk.test.lib.process.OutputAnalyzer;
    51 import jdk.test.lib.process.OutputAnalyzer;
    52 import jdk.test.lib.unsafe.UnsafeHelper;
       
    53 import jdk.test.lib.cli.CommandLineOptionTest;
    52 import jdk.test.lib.cli.CommandLineOptionTest;
    54 import jdk.test.lib.cli.predicate.AndPredicate;
    53 import jdk.test.lib.cli.predicate.AndPredicate;
    55 
    54 
    56 import java.util.List;
    55 import java.util.List;
    57 
    56 
   111         }
   110         }
   112     }
   111     }
   113 
   112 
   114     public static class Test implements CompilableTest {
   113     public static class Test implements CompilableTest {
   115         private static final long TOTAL_ITERATIONS = 10000L;
   114         private static final long TOTAL_ITERATIONS = 10000L;
   116         private static final Unsafe UNSAFE = UnsafeHelper.getUnsafe();
   115         private static final Unsafe UNSAFE = Unsafe.getUnsafe();
   117         private final Object monitor = new Object();
   116         private final Object monitor = new Object();
   118         // Following field have to be static in order to avoid escape analysis.
   117         // Following field have to be static in order to avoid escape analysis.
   119         @SuppressWarnings("UnsuedDeclaration")
   118         @SuppressWarnings("UnsuedDeclaration")
   120         private static int field = 0;
   119         private static int field = 0;
   121 
   120