< prev index next >

test/hotspot/jtreg/compiler/unsafe/OpaqueAccesses.java

Print this page

 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8155781
 27  * @modules java.base/jdk.internal.misc
 28  *
 29  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 30  *                                 -XX:-TieredCompilation -Xbatch
 31  *                                 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers
 32  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*
 33  *                                 compiler.unsafe.OpaqueAccesses
 34  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 35  *                                 -XX:-TieredCompilation -Xbatch
 36  *                                 -XX:+UseCompressedOops -XX:-UseCompressedClassPointers
 37  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*
 38  *                                 compiler.unsafe.OpaqueAccesses
 39  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 40  *                                 -XX:-TieredCompilation -Xbatch
 41  *                                 -XX:-UseCompressedOops -XX:+UseCompressedClassPointers
 42  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*
 43  *                                 compiler.unsafe.OpaqueAccesses
 44  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 45  *                                 -XX:-TieredCompilation -Xbatch
 46  *                                 -XX:-UseCompressedOops -XX:-UseCompressedClassPointers
 47  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*
 48  *                                 compiler.unsafe.OpaqueAccesses
 49  */
 50 package compiler.unsafe;
 51 
 52 import jdk.internal.misc.Unsafe;
 53 
 54 import java.lang.reflect.Field;
 55 
 56 public class OpaqueAccesses {
 57     private static final Unsafe UNSAFE = Unsafe.getUnsafe();
 58 
 59     private static final Object INSTANCE = new OpaqueAccesses();
 60 
 61     private static final Object[] ARRAY = new Object[10];
 62 
 63     private static final long F_OFFSET;
 64     private static final long E_OFFSET;
 65 
 66     static {
 67         try {

 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8155781
 27  * @modules java.base/jdk.internal.misc
 28  *
 29  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 30  *                                 -XX:-TieredCompilation -Xbatch
 31  *                                 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers
 32  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*
 33  *                                 compiler.unsafe.OpaqueAccesses
 34  * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
 35  *                                 -XX:-TieredCompilation -Xbatch





 36  *                                 -XX:-UseCompressedOops -XX:+UseCompressedClassPointers
 37  *                                 -XX:CompileCommand=dontinline,compiler.unsafe.OpaqueAccesses::test*





 38  *                                 compiler.unsafe.OpaqueAccesses
 39  */
 40 package compiler.unsafe;
 41 
 42 import jdk.internal.misc.Unsafe;
 43 
 44 import java.lang.reflect.Field;
 45 
 46 public class OpaqueAccesses {
 47     private static final Unsafe UNSAFE = Unsafe.getUnsafe();
 48 
 49     private static final Object INSTANCE = new OpaqueAccesses();
 50 
 51     private static final Object[] ARRAY = new Object[10];
 52 
 53     private static final long F_OFFSET;
 54     private static final long E_OFFSET;
 55 
 56     static {
 57         try {
< prev index next >