8319540: GC: Make TestSelectDefaultGC use createTestJavaProcessBuilder

Reviewed-by: lkorinth, stefank
This commit is contained in:
Ramkumar Sunderbabu 2025-11-27 13:00:36 +00:00 committed by Stefan Karlsson
parent 150def42dd
commit 5f5bf1971c

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -44,7 +44,7 @@ public class TestSelectDefaultGC {
public static void testDefaultGC(boolean actAsServer) throws Exception {
// Start VM without specifying GC
OutputAnalyzer output = GCArguments.executeLimitedTestJava(
OutputAnalyzer output = GCArguments.executeTestJava(
"-XX:" + (actAsServer ? "+" : "-") + "AlwaysActAsServerClassMachine",
"-XX:" + (actAsServer ? "-" : "+") + "NeverActAsServerClassMachine",
"-XX:+PrintFlagsFinal",