8315988: Parallel: Make TestAggressiveHeap use createTestJvm

Reviewed-by: ayang, tschatzl
This commit is contained in:
Leo Korinth 2023-09-18 07:14:53 +00:00
parent aa0ebeedb1
commit fbc766ee21

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2017, 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
@ -65,7 +65,7 @@ public class TestAggressiveHeap {
" *bool +UseParallelGC *= *true +\\{product\\} *\\{command line\\}"; " *bool +UseParallelGC *= *true +\\{product\\} *\\{command line\\}";
private static void testFlag() throws Exception { private static void testFlag() throws Exception {
ProcessBuilder pb = GCArguments.createJavaProcessBuilder( ProcessBuilder pb = GCArguments.createTestJvm(
option, heapSizeOption, "-XX:+PrintFlagsFinal", "-version"); option, heapSizeOption, "-XX:+PrintFlagsFinal", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start()); OutputAnalyzer output = new OutputAnalyzer(pb.start());