< prev index next >
test/runtime/Unsafe/CopyMemory.java
Print this page
@@ -28,18 +28,17 @@
* @modules java.base/jdk.internal.misc
* java.management
* @run main CopyMemory
*/
-import jdk.test.lib.unsafe.UnsafeHelper;
import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class CopyMemory {
final static int LENGTH = 8;
public static void main(String args[]) throws Exception {
- Unsafe unsafe = UnsafeHelper.getUnsafe();
+ Unsafe unsafe = Unsafe.getUnsafe();
long src = unsafe.allocateMemory(LENGTH);
long dst = unsafe.allocateMemory(LENGTH);
assertNotEquals(src, 0L);
assertNotEquals(dst, 0L);
< prev index next >