hotspot/test/runtime/Unsafe/GetUncompressedObject.java
changeset 41092 c388d897472d
parent 40855 3c4c913195e3
equal deleted inserted replaced
41091:de3789bb384e 41092:c388d897472d
    28  * @run main GetUncompressedObject
    28  * @run main GetUncompressedObject
    29  */
    29  */
    30 
    30 
    31 import static jdk.test.lib.Asserts.*;
    31 import static jdk.test.lib.Asserts.*;
    32 
    32 
    33 import jdk.test.lib.unsafe.UnsafeHelper;
       
    34 import jdk.internal.misc.Unsafe;
    33 import jdk.internal.misc.Unsafe;
    35 
    34 
    36 public class GetUncompressedObject {
    35 public class GetUncompressedObject {
    37 
    36 
    38     public static void main(String args[]) throws Exception {
    37     public static void main(String args[]) throws Exception {
    39         Unsafe unsafe = UnsafeHelper.getUnsafe();
    38         Unsafe unsafe = Unsafe.getUnsafe();
    40 
    39 
    41         // Allocate some memory and fill it with non-zero values.
    40         // Allocate some memory and fill it with non-zero values.
    42         final int size = 32;
    41         final int size = 32;
    43         final long address = unsafe.allocateMemory(size);
    42         final long address = unsafe.allocateMemory(size);
    44         unsafe.setMemory(address, size, (byte) 0x23);
    43         unsafe.setMemory(address, size, (byte) 0x23);