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:
Dmitry Samersoff 2016-05-01 12:47:00 +03:00
parent da0fe9d476
commit 85deb5aa7e
403 changed files with 444 additions and 91 deletions

View file

@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
* @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
@ -56,7 +57,7 @@ import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.misc.Unsafe;
import jdk.internal.misc.Unsafe;
public class ResolveMethodTest {
private static final Unsafe UNSAFE = Utils.getUnsafe();