equal
deleted
inserted
replaced
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); |