< prev index next >

test/runtime/Unsafe/AllocateMemory.java

Print this page

        

*** 28,40 **** * @modules java.base/sun.misc * java.management * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m AllocateMemory */ ! import com.oracle.java.testlibrary.*; import sun.misc.Unsafe; ! import static com.oracle.java.testlibrary.Asserts.*; public class AllocateMemory { public static void main(String args[]) throws Exception { Unsafe unsafe = Utils.getUnsafe(); --- 28,40 ---- * @modules java.base/sun.misc * java.management * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m AllocateMemory */ ! import jdk.test.lib.*; import sun.misc.Unsafe; ! import static jdk.test.lib.Asserts.*; public class AllocateMemory { public static void main(String args[]) throws Exception { Unsafe unsafe = Utils.getUnsafe();
< prev index next >