< prev index next >

test/runtime/Unsafe/SetMemory.java

Print this page

        

*** 28,40 **** * @modules java.base/sun.misc * java.management * @run main SetMemory */ ! import com.oracle.java.testlibrary.*; import sun.misc.Unsafe; ! import static com.oracle.java.testlibrary.Asserts.*; public class SetMemory { public static void main(String args[]) throws Exception { Unsafe unsafe = Utils.getUnsafe(); long address = unsafe.allocateMemory(1); --- 28,40 ---- * @modules java.base/sun.misc * java.management * @run main SetMemory */ ! import jdk.test.lib.*; import sun.misc.Unsafe; ! import static jdk.test.lib.Asserts.*; public class SetMemory { public static void main(String args[]) throws Exception { Unsafe unsafe = Utils.getUnsafe(); long address = unsafe.allocateMemory(1);
< prev index next >