Skip to content

Commit 1daafdd

Browse files
author
Andrew Lu
committed
8317343: GC: Make TestHeapFreeRatio use createTestJvm
Backport-of: c64bd3d6715304accd9a1e3266edd9d3d2353273
1 parent 8ef8482 commit 1daafdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/hotspot/jtreg/gc/arguments/TestHeapFreeRatio.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,6 +28,7 @@
2828
* @key gc
2929
* @bug 8025661
3030
* @summary Test parsing of -Xminf and -Xmaxf
31+
* @requires vm.opt.x.Xminf == null & vm.opt.x.Xmaxf == null & vm.opt.MinHeapFreeRatio == null & vm.opt.MaxHeapFreeRatio == null
3132
* @library /test/lib
3233
* @library /
3334
* @modules java.base/jdk.internal.misc
@@ -49,7 +50,7 @@ enum Validation {
4950
}
5051

5152
private static void testMinMaxFreeRatio(String min, String max, Validation type) throws Exception {
52-
ProcessBuilder pb = GCArguments.createJavaProcessBuilder(
53+
ProcessBuilder pb = GCArguments.createTestJvm(
5354
"-Xminf" + min,
5455
"-Xmaxf" + max,
5556
"-version");

0 commit comments

Comments
 (0)