author | lmesnik |
Fri, 26 Apr 2019 11:33:32 -0700 | |
changeset 54638 | 9b8926bf85c1 |
parent 53523 | 4c5184c56dc2 |
child 59053 | ba6c248cae19 |
permissions | -rw-r--r-- |
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
1 |
/* |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
2 |
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
41705
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
4 |
* |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
7 |
* published by the Free Software Foundation. |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
8 |
* |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
13 |
* accompanied this code). |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
14 |
* |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
18 |
* |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
21 |
* questions. |
332239c052cc
8165687: Fix license and copyright headers in jd9 under hotspot/test
stsmirno
parents:
40631
diff
changeset
|
22 |
*/ |
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
23 |
|
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
24 |
package gc.arguments; |
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
25 |
|
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
26 |
/* |
54638
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
27 |
* @test TestUseCompressedOopsErgoSerial |
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
28 |
* @key gc |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
29 |
* @bug 8010722 |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
30 |
* @summary Tests ergonomics for UseCompressedOops. |
54638
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
31 |
* @requires vm.gc.Serial |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
32 |
* @library /test/lib |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
33 |
* @library / |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
34 |
* @modules java.base/jdk.internal.misc |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
35 |
* java.management/sun.management |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
36 |
* @build sun.hotspot.WhiteBox |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
37 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
38 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
39 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseSerialGC |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
40 |
*/ |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
41 |
|
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
42 |
/* |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
43 |
* @test TestUseCompressedOopsErgoParallel |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
44 |
* @key gc |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
45 |
* @bug 8010722 |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
46 |
* @summary Tests ergonomics for UseCompressedOops. |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
47 |
* @requires vm.gc.Parallel |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
48 |
* @library /test/lib |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
49 |
* @library / |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
50 |
* @modules java.base/jdk.internal.misc |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
51 |
* java.management/sun.management |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
52 |
* @build sun.hotspot.WhiteBox |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
53 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
54 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
55 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseParallelGC |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
56 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseParallelGC -XX:-UseParallelOldGC |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
57 |
*/ |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
58 |
|
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
59 |
/* |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
60 |
* @test TestUseCompressedOopsErgoG1 |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
61 |
* @key gc |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
62 |
* @bug 8010722 |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
63 |
* @summary Tests ergonomics for UseCompressedOops. |
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
64 |
* @requires vm.gc.G1 |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
36851
diff
changeset
|
65 |
* @library /test/lib |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
66 |
* @library / |
36851 | 67 |
* @modules java.base/jdk.internal.misc |
29678
dd2f3932c21e
8075586: Add @modules as needed to the open hotspot tests
ykantser
parents:
28190
diff
changeset
|
68 |
* java.management/sun.management |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
36851
diff
changeset
|
69 |
* @build sun.hotspot.WhiteBox |
48791
6e079ff6c83c
8186635: ClassFileInstaller should be run as a driver
iignatyev
parents:
47216
diff
changeset
|
70 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
25958
8dc85547d6d6
8011397: JTREG needs to copy additional WhiteBox class file to JTwork/scratch/sun/hotspot
mgerdin
parents:
24841
diff
changeset
|
71 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
72 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseG1GC |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
73 |
*/ |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
74 |
|
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
75 |
/* |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
76 |
* @test TestUseCompressedOopsErgoCMS |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
77 |
* @key gc |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
78 |
* @bug 8010722 |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
79 |
* @comment Graal does not support CMS |
54638
9b8926bf85c1
8220813: update hotspot tier1_gc tests depending on GC to use @requires vm.gc.X
lmesnik
parents:
53523
diff
changeset
|
80 |
* @requires vm.gc.ConcMarkSweep & !vm.graal.enabled |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
81 |
* @library /test/lib |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
82 |
* @library / |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
83 |
* @modules java.base/jdk.internal.misc |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
84 |
* java.management/sun.management |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
85 |
* @build sun.hotspot.WhiteBox |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
86 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
48791
diff
changeset
|
87 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
88 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseConcMarkSweepGC |
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
89 |
*/ |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
90 |
|
52925
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
91 |
/* |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
92 |
* @test TestUseCompressedOopsErgoShenandoah |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
93 |
* @key gc |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
94 |
* @bug 8010722 |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
95 |
* @comment Graal does not support Shenandoah |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
96 |
* @requires vm.gc.Shenandoah & !vm.graal.enabled |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
97 |
* @library /test/lib |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
98 |
* @library / |
52925
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
99 |
* @modules java.base/jdk.internal.misc |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
100 |
* java.management/sun.management |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
101 |
* @build sun.hotspot.WhiteBox |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
102 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
103 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
53523
4c5184c56dc2
8214799: Add package declaration to each JTREG test case in the gc folder
lkorinth
parents:
52925
diff
changeset
|
104 |
* @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC |
52925
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
105 |
*/ |
9c18c9d839d3
8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents:
50455
diff
changeset
|
106 |
|
19986
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
107 |
public class TestUseCompressedOopsErgo { |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
108 |
|
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
109 |
public static void main(String args[]) throws Exception { |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
110 |
if (!TestUseCompressedOopsErgoTools.is64bitVM()) { |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
111 |
// this test is relevant for 64 bit VMs only |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
112 |
return; |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
113 |
} |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
114 |
final String[] gcFlags = args; |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
115 |
TestUseCompressedOopsErgoTools.checkCompressedOopsErgo(gcFlags); |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
116 |
} |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
117 |
} |
33d188c66ed9
8010722: assert: failed: heap size is too big for compressed oops
tschatzl
parents:
diff
changeset
|
118 |