8154258: [TESTBUG] Various serviceability tests fail compilation
Replace sun.misc.Unsafe with jdk.internal.misc.Unsafe Reviewed-by: chegar, kvn
This commit is contained in:
parent
da0fe9d476
commit
85deb5aa7e
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 5057225
|
||||
* @summary Remove useless I2L conversions
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xcomp -XX:CompileOnly=Test5057225.doload Test5057225
|
||||
*/
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 6603011
|
||||
* @summary long/int division by constant
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xcomp -Xbatch -XX:-Inline Test
|
||||
*/
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 6800154
|
||||
* @summary Add comments to long_by_long_mulhi() for better understandability
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xcomp -XX:CompileOnly=Test6800154.divcomp Test6800154
|
||||
*/
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @bug 6805724
|
||||
* @summary ModLNode::Ideal() generates functionally incorrect graph
|
||||
* when divisor is any (2^k-1) constant.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xcomp -XX:CompileOnly=Test6805724.fcomp Test6805724
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@
|
||||
* @run main Test6968348
|
||||
*/
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class Test6968348 {
|
||||
@ -40,7 +40,7 @@ public class Test6968348 {
|
||||
static int array_long_base_offset;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Class c = Test6968348.class.getClassLoader().loadClass("sun.misc.Unsafe");
|
||||
Class c = Test6968348.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
|
||||
Field f = c.getDeclaredField("theUnsafe");
|
||||
f.setAccessible(true);
|
||||
unsafe = (Unsafe)f.get(c);
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
import java.lang.ref.*;
|
||||
import java.lang.reflect.*;
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
public class Test7190310_unsafe {
|
||||
|
||||
@ -48,7 +48,7 @@ public class Test7190310_unsafe {
|
||||
private TestObject obj;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Class c = Test7190310_unsafe.class.getClassLoader().loadClass("sun.misc.Unsafe");
|
||||
Class c = Test7190310_unsafe.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
|
||||
Field f = c.getDeclaredField("theUnsafe");
|
||||
f.setAccessible(true);
|
||||
Unsafe unsafe = (Unsafe)f.get(c);
|
||||
|
@ -32,7 +32,7 @@
|
||||
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:+OptimizeFill TestIntUnsafeCAS
|
||||
*/
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class TestIntUnsafeCAS {
|
||||
@ -47,7 +47,7 @@ public class TestIntUnsafeCAS {
|
||||
private static final int BASE;
|
||||
static {
|
||||
try {
|
||||
Class c = TestIntUnsafeCAS.class.getClassLoader().loadClass("sun.misc.Unsafe");
|
||||
Class c = TestIntUnsafeCAS.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
|
||||
Field f = c.getDeclaredField("theUnsafe");
|
||||
f.setAccessible(true);
|
||||
unsafe = (Unsafe)f.get(c);
|
||||
|
@ -32,7 +32,7 @@
|
||||
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:+OptimizeFill TestIntUnsafeVolatile
|
||||
*/
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class TestIntUnsafeVolatile {
|
||||
@ -47,7 +47,7 @@ public class TestIntUnsafeVolatile {
|
||||
private static final int BASE;
|
||||
static {
|
||||
try {
|
||||
Class c = TestIntUnsafeVolatile.class.getClassLoader().loadClass("sun.misc.Unsafe");
|
||||
Class c = TestIntUnsafeVolatile.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
|
||||
Field f = c.getDeclaredField("theUnsafe");
|
||||
f.setAccessible(true);
|
||||
unsafe = (Unsafe)f.get(c);
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @library /test/lib /testlibrary /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @build compiler.calls.common.InvokeDynamic
|
||||
* @build compiler.calls.common.InvokeDynamicPatcher
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeInterface
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeSpecial
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeStatic
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /testlibrary /
|
||||
* @build compiler.calls.common.InvokeVirtual
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
import sun.hotspot.WhiteBox;
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Method;
|
||||
|
@ -31,6 +31,7 @@ import java.net.URLClassLoader;
|
||||
* @test MethodUnloadingTest
|
||||
* @bug 8029443
|
||||
* @summary "Tests the unloading of methods to to class unloading"
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @build TestMethodUnloading
|
||||
* @build WorkerClass
|
||||
|
@ -35,6 +35,7 @@ import jdk.test.lib.Asserts;
|
||||
* @test OverflowCodeCacheTest
|
||||
* @bug 8059550
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build OverflowCodeCacheTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -48,6 +48,7 @@ import java.util.stream.Collectors;
|
||||
* @test SegmentedCodeCacheDtraceTest
|
||||
* @bug 8015774
|
||||
* @requires os.family=="solaris"
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary / /test/lib
|
||||
* @build SegmentedCodeCacheDtraceTestWorker
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -28,6 +28,7 @@ import sun.hotspot.code.BlobType;
|
||||
/**
|
||||
* @test BeanTypeTest
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build BeanTypeTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -28,6 +28,7 @@ import sun.hotspot.code.BlobType;
|
||||
/**
|
||||
* @test CodeHeapBeanPresenceTest
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build CodeHeapBeanPresenceTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -28,6 +28,7 @@ import sun.hotspot.code.BlobType;
|
||||
/**
|
||||
* @test ManagerNamesTest
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build ManagerNamesTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -33,6 +33,7 @@ import sun.hotspot.code.BlobType;
|
||||
/**
|
||||
* @test MemoryPoolsPresenceTest
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build MemoryPoolsPresenceTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -37,6 +37,7 @@ import sun.hotspot.code.BlobType;
|
||||
|
||||
/*
|
||||
* @test PoolsIndependenceTest
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @build PoolsIndependenceTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 6823354
|
||||
* @summary These methods can be instrinsified by using bit scan, bit test, and population count instructions.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xcomp -XX:CompileOnly=Test6823354.lzcomp,Test6823354.tzcomp,.dolzcomp,.dotzcomp Test6823354
|
||||
*/
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test InlineMatcherTest
|
||||
* @bug 8074095
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @build sun.hotspot.WhiteBox
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=compileonly
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commandfile.CompileOnlyTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=exclude
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commandfile.ExcludeTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=log
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commandfile.LogTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=print
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commandfile.PrintTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=compileonly
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commands.CompileOnlyTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=exclude
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commands.ExcludeTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=log
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commands.LogTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests CompileCommand=print
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.commands.PrintTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directives to be able to compile only specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.directives.CompileOnlyTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directives to be able to exclude methods from compilation
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.directives.ExcludeTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directives to be able to turn on LogCompilation
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.directives.LogTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directives to be able to turn on print_assembly
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.directives.PrintTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directives to be able to add and remove directives
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.AddAndRemoveTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a directive to compile only specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.AddCompileOnlyTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a directive to exclude only specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.AddExcludeTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a directive to log only specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.AddLogTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a directive to print assembly
|
||||
* only for specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.AddPrintAssemblyTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @bug 8137167
|
||||
* @ignore 8140405
|
||||
* @summary Tests jcmd to be able to clear directives added via options
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.ClearDirectivesFileStackTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests clear JCMD command
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.ClearDirectivesStackTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a directive to compile only specified methods
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.PrintDirectivesTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @bug 8137167
|
||||
* @summary Tests jcmd to be able to add a lot of huge directive files with
|
||||
* parallel executed jcmds until timeout has reached
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -40,6 +40,7 @@ import java.util.regex.Pattern;
|
||||
* @test
|
||||
* @bug 8135068
|
||||
* @summary Tests CompilerCommand's method matcher
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/whitebox ../share /
|
||||
* @build compiler.compilercontrol.matcher.MethodMatcherTest
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Randomly generates commands with random types
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.mixed.RandomCommandsTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Randomly generates valid commands with random types
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
|
||||
* @build compiler.compilercontrol.mixed.RandomValidCommandsTest
|
||||
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Tests directive json parser
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib ../share /
|
||||
* @run driver compiler.compilercontrol.parser.DirectiveParserTest
|
||||
*/
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8137167
|
||||
* @summary Stress directive json parser
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib ../share /
|
||||
* @run driver compiler.compilercontrol.parser.DirectiveStressTest
|
||||
*/
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
|
||||
* -XX:CompileOnly=::valueOf,::byteValue,::shortValue,::testUnsignedByte,::testUnsignedShort
|
||||
|
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
public class TestUnsafePutAddressNullObjMustNotEscape {
|
||||
|
||||
@ -43,7 +43,7 @@ public class TestUnsafePutAddressNullObjMustNotEscape {
|
||||
System.out.println("EXECUTING test.");
|
||||
|
||||
{
|
||||
System.out.println("Acquiring sun.misc.Unsafe.theUnsafe using reflection.");
|
||||
System.out.println("Acquiring jdk.internal.misc.Unsafe.theUnsafe using reflection.");
|
||||
getUnsafe();
|
||||
System.out.println("Allocating raw memory.");
|
||||
mem = (usafe.allocateMemory(1024) + 8L) & ~7L;
|
||||
@ -78,8 +78,8 @@ public class TestUnsafePutAddressNullObjMustNotEscape {
|
||||
}
|
||||
|
||||
private static void getUnsafe() throws Exception {
|
||||
Field field = sun.misc.Unsafe.class.getDeclaredField("theUnsafe");
|
||||
Field field = jdk.internal.misc.Unsafe.class.getDeclaredField("theUnsafe");
|
||||
field.setAccessible(true);
|
||||
usafe = (sun.misc.Unsafe) field.get(null);
|
||||
usafe = (jdk.internal.misc.Unsafe) field.get(null);
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @bug 8063086
|
||||
* @summary X^2 special case for C2 yields different result than interpreter
|
||||
* @library /testlibrary /test/lib /compiler/whitebox /
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @build TestPow2
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 8140650
|
||||
* @summary Method::is_accessor should cover getters and setters for all types
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm InlineAccessors
|
||||
*/
|
||||
|
@ -29,6 +29,7 @@ import compiler.whitebox.CompilerWhiteBoxTest;
|
||||
/*
|
||||
* @test
|
||||
* @bug 8130832
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib /compiler/whitebox /compiler/testlibrary /
|
||||
* @build IntrinsicAvailableTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8138651
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @build IntrinsicDisabledTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @test
|
||||
* @bug 8033626
|
||||
* @summary assert(ex_map->jvms()->same_calls_as(_exceptions->jvms())) failed: all collected exceptions must come from the same place
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -XX:-TieredCompilation -Xbatch -XX:CompileOnly=TestObjectClone::f TestObjectClone
|
||||
*/
|
||||
|
@ -42,6 +42,7 @@ import jdk.test.lib.Platform;
|
||||
* @test
|
||||
* @bug 8130150 8131779 8139907
|
||||
* @summary Verify that the Montgomery multiply and square intrinsic works and correctly checks their arguments.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @library /testlibrary
|
||||
* @build MontgomeryMultiplyTest
|
||||
|
@ -27,6 +27,7 @@ import jdk.test.lib.Asserts;
|
||||
* @test
|
||||
* @bug 8144212
|
||||
* @summary Check for correct memory flow with the String compress/inflate intrinsics.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main TestStringIntrinsicMemoryFlow
|
||||
*/
|
||||
|
@ -26,6 +26,7 @@
|
||||
* @test
|
||||
* @bug 8145336
|
||||
* @summary PPC64: fix string intrinsics after CompactStrings change
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @build sun.hotspot.WhiteBox
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
|
@ -36,6 +36,7 @@ import jdk.test.lib.Utils;
|
||||
/**
|
||||
* @test
|
||||
* @bug 8026049
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-UseUnalignedAccesses -Djdk.test.lib.random.seed=0 HeapByteBufferTest
|
||||
* @run main/othervm -Djdk.test.lib.random.seed=0 HeapByteBufferTest
|
||||
|
@ -25,6 +25,7 @@
|
||||
/**
|
||||
* @test
|
||||
* @bug 8142386
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary /test/lib
|
||||
* @summary Unsafe access to an array is wrongly marked as mismatched
|
||||
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation TestUnsafeMismatchedArrayFieldAccess
|
||||
@ -33,7 +34,7 @@
|
||||
|
||||
import java.lang.reflect.*;
|
||||
import jdk.test.lib.Utils;
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
public class TestUnsafeMismatchedArrayFieldAccess {
|
||||
|
||||
|
@ -30,21 +30,21 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class UnsafeGetAddressTest {
|
||||
private static Unsafe unsafe;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Class c = UnsafeGetAddressTest.class.getClassLoader().loadClass("sun.misc.Unsafe");
|
||||
Class c = UnsafeGetAddressTest.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
|
||||
Field f = c.getDeclaredField("theUnsafe");
|
||||
f.setAccessible(true);
|
||||
unsafe = (Unsafe)f.get(c);
|
||||
|
||||
long address = unsafe.allocateMemory(unsafe.addressSize());
|
||||
unsafe.putAddress(address, 0x0000000080000000L);
|
||||
// from sun.misc.Unsafe.getAddress' documentation:
|
||||
// from jdk.internal.misc.Unsafe.getAddress' documentation:
|
||||
// "If the native pointer is less than 64 bits wide, it is
|
||||
// extended as an unsigned number to a Java long."
|
||||
result = unsafe.getAddress(address);
|
||||
|
@ -24,6 +24,7 @@
|
||||
/**
|
||||
* @test
|
||||
* @bug 8057967
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.base/jdk.internal.org.objectweb.asm
|
||||
* @library patches
|
||||
* @build java.base/java.lang.invoke.MethodHandleHelper
|
||||
@ -46,7 +47,7 @@ import java.lang.ref.ReferenceQueue;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import jdk.internal.org.objectweb.asm.*;
|
||||
import sun.misc.Unsafe;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
import static jdk.internal.org.objectweb.asm.Opcodes.*;
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /testlibrary
|
||||
* @run main ContinuousCallSiteTargetChange
|
||||
*/
|
||||
|
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8067247
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /compiler/whitebox /
|
||||
* @run main/bootclasspath -Xcomp -Xbatch
|
||||
* -XX:CompileCommand=compileonly,InvokerGC::test
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user