8317188: G1: Make TestG1ConcRefinementThreads use createTestJvm

Reviewed-by: mli, tschatzl
This commit is contained in:
Leo Korinth 2023-10-17 12:00:27 +00:00
parent 7e39e664cf
commit a949824e98

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,7 +26,7 @@ package gc.arguments;
/* /*
* @test TestG1ConcRefinementThreads * @test TestG1ConcRefinementThreads
* @bug 8047976 * @bug 8047976
* @requires vm.gc.G1 * @requires vm.gc.G1 & vm.opt.G1ConcRefinementThreads == null
* @summary Tests argument processing for G1ConcRefinementThreads * @summary Tests argument processing for G1ConcRefinementThreads
* @library /test/lib * @library /test/lib
* @library / * @library /
@ -69,7 +69,7 @@ public class TestG1ConcRefinementThreads {
} }
Collections.addAll(vmOpts, "-XX:+UseG1GC", "-XX:+PrintFlagsFinal", "-version"); Collections.addAll(vmOpts, "-XX:+UseG1GC", "-XX:+PrintFlagsFinal", "-version");
ProcessBuilder pb = GCArguments.createJavaProcessBuilder(vmOpts); ProcessBuilder pb = GCArguments.createTestJvm(vmOpts);
OutputAnalyzer output = new OutputAnalyzer(pb.start()); OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldHaveExitValue(0); output.shouldHaveExitValue(0);