< prev index next >
test/gc/arguments/TestMaxMinHeapFreeRatioFlags.java
Print this page
@@ -35,11 +35,10 @@
import java.util.Arrays;
import java.util.Collections;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.Utils;
-import jdk.test.lib.unsafe.UnsafeHelper;
import jdk.internal.misc.Unsafe;
public class TestMaxMinHeapFreeRatioFlags {
public static final long M = 1024 * 1024;
@@ -132,11 +131,11 @@
* RatioVerifier will be executed in the tested VM.
* It will check that real heap usage after collection lies between MinHeapFreeRatio and MaxHeapFreeRatio.
*/
public static class RatioVerifier {
- private static final Unsafe unsafe = UnsafeHelper.getUnsafe();
+ private static final Unsafe unsafe = Unsafe.getUnsafe();
// Size of byte array that will be allocated
public static final int CHUNK_SIZE = 1024;
// Length of byte array, that will be added to "garbage" list.
public static final int ARRAY_LENGTH = CHUNK_SIZE - Unsafe.ARRAY_BYTE_BASE_OFFSET;
< prev index next >