equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
42 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:-UseSerialGC", |
42 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:-UseSerialGC", |
43 "-XX:-UseParallelGC", |
43 "-XX:-UseParallelGC", |
44 "-XX:-UseG1GC", |
44 "-XX:-UseG1GC", |
45 "-XX:-UseConcMarkSweepGC", |
45 "-XX:-UseConcMarkSweepGC", |
46 "-XX:+UnlockExperimentalVMOptions", |
46 "-XX:+UnlockExperimentalVMOptions", |
|
47 "-XX:-UseShenandoahGC", |
47 "-XX:-UseZGC", |
48 "-XX:-UseZGC", |
48 "-version"); |
49 "-version"); |
49 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
50 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
50 output.shouldMatch("Garbage collector not selected"); |
51 output.shouldMatch("Garbage collector not selected"); |
51 output.shouldHaveExitValue(1); |
52 output.shouldHaveExitValue(1); |