Skip to content

Commit 9e8cee6

Browse files
committed
8317042: G1: Make TestG1ConcMarkStepDurationMillis use createTestJvm
Backport-of: 7e39e664cf6d4658b0aa03f9b5162cf7de40de28
1 parent 16875f2 commit 9e8cee6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 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
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* @test TestG1ConcMarkStepDurationMillis
28-
* @requires vm.gc.G1
28+
* @requires vm.gc.G1 & vm.opt.G1ConcMarkStepDurationMillis == null
2929
* @summary Tests argument processing for double type flag, G1ConcMarkStepDurationMillis
3030
* @library /test/lib
3131
* @library /
@@ -78,7 +78,7 @@ private static void runG1ConcMarkStepDurationMillisTest(String expectedValue, in
7878

7979
Collections.addAll(vmOpts, "-XX:+UseG1GC", "-XX:G1ConcMarkStepDurationMillis="+expectedValue, "-XX:+PrintFlagsFinal", "-version");
8080

81-
ProcessBuilder pb = GCArguments.createJavaProcessBuilder(vmOpts);
81+
ProcessBuilder pb = GCArguments.createTestJvm(vmOpts);
8282
OutputAnalyzer output = new OutputAnalyzer(pb.start());
8383

8484
output.shouldHaveExitValue(expectedResult == PASS ? 0 : 1);

0 commit comments

Comments
 (0)