Skip to content

Commit 4f6a2e6

Browse files
committed
8317343: GC: Make TestHeapFreeRatio use createTestJvm
Backport-of: c64bd3d6715304accd9a1e3266edd9d3d2353273
1 parent 5f7b7c5 commit 4f6a2e6

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, 2022, 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
@@ -27,6 +27,7 @@
2727
* @test TestHeapFreeRatio
2828
* @bug 8025661
2929
* @summary Test parsing of -Xminf and -Xmaxf
30+
* @requires vm.opt.x.Xminf == null & vm.opt.x.Xmaxf == null & vm.opt.MinHeapFreeRatio == null & vm.opt.MaxHeapFreeRatio == null
3031
* @library /test/lib
3132
* @library /
3233
* @modules java.base/jdk.internal.misc
@@ -47,7 +48,7 @@ enum Validation {
4748
}
4849

4950
private static void testMinMaxFreeRatio(String min, String max, Validation type) throws Exception {
50-
ProcessBuilder pb = GCArguments.createJavaProcessBuilder(
51+
ProcessBuilder pb = GCArguments.createTestJvm(
5152
"-Xminf" + min,
5253
"-Xmaxf" + max,
5354
"-version");

0 commit comments

Comments
 (0)