< prev index next >
test/runtime/Unsafe/GetUncompressedObject.java
Print this page
*** 28,44 ****
* @run main GetUncompressedObject
*/
import static jdk.test.lib.Asserts.*;
- import jdk.test.lib.unsafe.UnsafeHelper;
import jdk.internal.misc.Unsafe;
public class GetUncompressedObject {
public static void main(String args[]) throws Exception {
! Unsafe unsafe = UnsafeHelper.getUnsafe();
// Allocate some memory and fill it with non-zero values.
final int size = 32;
final long address = unsafe.allocateMemory(size);
unsafe.setMemory(address, size, (byte) 0x23);
--- 28,43 ----
* @run main GetUncompressedObject
*/
import static jdk.test.lib.Asserts.*;
import jdk.internal.misc.Unsafe;
public class GetUncompressedObject {
public static void main(String args[]) throws Exception {
! Unsafe unsafe = Unsafe.getUnsafe();
// Allocate some memory and fill it with non-zero values.
final int size = 32;
final long address = unsafe.allocateMemory(size);
unsafe.setMemory(address, size, (byte) 0x23);
< prev index next >