author | shade |
Mon, 11 Jun 2018 09:29:44 +0200 | |
branch | epsilon-gc-branch |
changeset 56719 | a846e7bbcdfa |
parent 56671 | c559de946c7d |
parent 50455 | 2b73cce96dce |
permissions | -rw-r--r-- |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
1 |
/* |
49463
ccb003941743
8175312: SA: clhsdb: Provide an improved heap summary for 'universe' for G1GC
jgeorge
parents:
47900
diff
changeset
|
2 |
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
4 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
8 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
13 |
* accompanied this code). |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
14 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
18 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
21 |
* questions. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
22 |
*/ |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
23 |
|
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
24 |
import sun.hotspot.code.Compiler; |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
25 |
|
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
26 |
import java.util.ArrayList; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
27 |
import java.util.List; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
28 |
import java.io.IOException; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
29 |
import java.util.stream.Collectors; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
30 |
import java.io.OutputStream; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
31 |
import jdk.test.lib.apps.LingeredApp; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
32 |
import jdk.test.lib.JDKToolLauncher; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
33 |
import jdk.test.lib.Platform; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
34 |
import jdk.test.lib.process.OutputAnalyzer; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
35 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
36 |
/* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
37 |
* @test |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
38 |
* @summary Test the 'universe' command of jhsdb clhsdb. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
39 |
* @bug 8190307 |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
40 |
* @library /test/lib |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
41 |
* @build jdk.test.lib.apps.* |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
42 |
* @build sun.hotspot.WhiteBox |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
43 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
44 |
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. TestUniverse |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
45 |
*/ |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
46 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
47 |
public class TestUniverse { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
48 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
49 |
private static void testClhsdbForUniverse(long lingeredAppPid, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
50 |
String gc) throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
51 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
52 |
Process p; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
53 |
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jhsdb"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
54 |
launcher.addToolArg("clhsdb"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
55 |
launcher.addToolArg("--pid"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
56 |
launcher.addToolArg(Long.toString(lingeredAppPid)); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
57 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
58 |
ProcessBuilder pb = new ProcessBuilder(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
59 |
pb.command(launcher.getCommand()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
60 |
System.out.println( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
61 |
pb.command().stream().collect(Collectors.joining(" "))); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
62 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
63 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
64 |
p = pb.start(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
65 |
} catch (Exception attachE) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
66 |
throw new Error("Couldn't start jhsdb or attach to LingeredApp : " + attachE); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
67 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
68 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
69 |
// Issue the 'universe' command at the clhsdb prompt. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
70 |
OutputStream input = p.getOutputStream(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
71 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
72 |
input.write("universe\n".getBytes()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
73 |
input.write("quit\n".getBytes()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
74 |
input.flush(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
75 |
} catch (IOException ioe) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
76 |
throw new Error("Problem issuing the 'universe' command ", ioe); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
77 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
78 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
79 |
OutputAnalyzer output = new OutputAnalyzer(p); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
80 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
81 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
82 |
p.waitFor(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
83 |
} catch (InterruptedException ie) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
84 |
p.destroyForcibly(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
85 |
throw new Error("Problem awaiting the child process: " + ie, ie); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
86 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
87 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
88 |
output.shouldHaveExitValue(0); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
89 |
System.out.println(output.getOutput()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
90 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
91 |
output.shouldContain("Heap Parameters"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
92 |
if (gc.contains("G1GC")) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
93 |
output.shouldContain("garbage-first heap"); |
49463
ccb003941743
8175312: SA: clhsdb: Provide an improved heap summary for 'universe' for G1GC
jgeorge
parents:
47900
diff
changeset
|
94 |
output.shouldContain("region size"); |
ccb003941743
8175312: SA: clhsdb: Provide an improved heap summary for 'universe' for G1GC
jgeorge
parents:
47900
diff
changeset
|
95 |
output.shouldContain("G1 Young Generation:"); |
ccb003941743
8175312: SA: clhsdb: Provide an improved heap summary for 'universe' for G1GC
jgeorge
parents:
47900
diff
changeset
|
96 |
output.shouldContain("regions ="); |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
97 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
98 |
if (gc.contains("UseConcMarkSweepGC")) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
99 |
output.shouldContain("Gen 1: concurrent mark-sweep generation"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
100 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
101 |
if (gc.contains("UseSerialGC")) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
102 |
output.shouldContain("Gen 1: old"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
103 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
104 |
if (gc.contains("UseParallelGC")) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
105 |
output.shouldContain("ParallelScavengeHeap"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
106 |
output.shouldContain("PSYoungGen"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
107 |
output.shouldContain("eden"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
108 |
} |
56671 | 109 |
if (gc.contains("UseEpsilonGC")) { |
110 |
output.shouldContain("Epsilon heap"); |
|
111 |
output.shouldContain("reserved"); |
|
112 |
output.shouldContain("committed"); |
|
113 |
output.shouldContain("used"); |
|
114 |
} |
|
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
115 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
116 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
117 |
public static void test(String gc) throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
118 |
LingeredApp app = null; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
119 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
120 |
List<String> vmArgs = new ArrayList<String>(); |
56671 | 121 |
vmArgs.add("-XX:+UnlockExperimentalVMOptions"); // unlock experimental GCs |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
122 |
vmArgs.add(gc); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
123 |
app = LingeredApp.startApp(vmArgs); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
124 |
System.out.println ("Started LingeredApp with the GC option " + gc + |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
125 |
" and pid " + app.getPid()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
126 |
testClhsdbForUniverse(app.getPid(), gc); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
127 |
} finally { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
128 |
LingeredApp.stopApp(app); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
129 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
130 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
131 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
132 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
133 |
public static void main (String... args) throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
134 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
135 |
if (!Platform.shouldSAAttach()) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
136 |
System.out.println( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
137 |
"SA attach not expected to work - test skipped."); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
138 |
return; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
139 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
140 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
141 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
142 |
test("-XX:+UseG1GC"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
143 |
test("-XX:+UseParallelGC"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
144 |
test("-XX:+UseSerialGC"); |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
145 |
if (!Compiler.isGraalEnabled()) { // Graal does not support CMS |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
146 |
test("-XX:+UseConcMarkSweepGC"); |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
49463
diff
changeset
|
147 |
} |
56671 | 148 |
test("-XX:+UseEpsilonGC"); |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
149 |
} catch (Exception e) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
150 |
throw new Error("Test failed with " + e); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
151 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
152 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
153 |
} |