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

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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