File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
test/hotspot/jtreg/gc/arguments Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
40
40
public class TestDisableDefaultGC {
41
41
public static void main (String [] args ) throws Exception {
42
42
// 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" );
50
50
OutputAnalyzer output = new OutputAnalyzer (pb .start ());
51
51
output .shouldMatch ("Garbage collector not selected" );
52
52
output .shouldHaveExitValue (1 );
You can’t perform that action at this time.
0 commit comments