Skip to content

Commit 4d4be51

Browse files
author
Andrew Lu
committed
8316973: GC: Make TestDisableDefaultGC use createTestJvm
Backport-of: 5f4be8cea980b3c2e8e5fb2067dc64b62fa0245c
1 parent 8f0e347 commit 4d4be51

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 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
@@ -40,13 +40,13 @@
4040
public class TestDisableDefaultGC {
4141
public static void main(String[] args) throws Exception {
4242
// Start VM, disabling all possible default GCs
43-
ProcessBuilder pb = GCArguments.createJavaProcessBuilder("-XX:-UseSerialGC",
44-
"-XX:-UseParallelGC",
45-
"-XX:-UseG1GC",
46-
"-XX:-UseZGC",
47-
"-XX:+UnlockExperimentalVMOptions",
48-
"-XX:-UseShenandoahGC",
49-
"-version");
43+
ProcessBuilder pb = GCArguments.createTestJvm("-XX:-UseSerialGC",
44+
"-XX:-UseParallelGC",
45+
"-XX:-UseG1GC",
46+
"-XX:-UseZGC",
47+
"-XX:+UnlockExperimentalVMOptions",
48+
"-XX:-UseShenandoahGC",
49+
"-version");
5050
OutputAnalyzer output = new OutputAnalyzer(pb.start());
5151
output.shouldMatch("Garbage collector not selected");
5252
output.shouldHaveExitValue(1);

0 commit comments

Comments
 (0)