author | tschatzl |
Wed, 24 Jul 2019 11:49:39 +0200 | |
changeset 57508 | 28ab01c06755 |
permissions | -rw-r--r-- |
57508
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
1 |
/* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
4 |
* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
8 |
* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
13 |
* accompanied this code). |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
14 |
* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
18 |
* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
21 |
* questions. |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
22 |
*/ |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
23 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
24 |
package gc.g1; |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
25 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
26 |
/* |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
27 |
* @test TestNoUseHCC |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
28 |
* @summary Check that G1 survives a GC without HCC enabled |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
29 |
* @requires vm.gc.G1 |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
30 |
* @key gc |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
31 |
* @modules java.base/jdk.internal.misc |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
32 |
* @library /test/lib |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
33 |
* @build sun.hotspot.WhiteBox |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
34 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
35 |
* @run main/othervm -Xbootclasspath/a:. -Xlog:gc+phases=debug -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseG1GC -Xmx64M -XX:G1ConcRSLogCacheSize=0 gc.g1.TestNoUseHCC |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
36 |
*/ |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
37 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
38 |
import sun.hotspot.WhiteBox; |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
39 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
40 |
public class TestNoUseHCC { |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
41 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
42 |
private static final WhiteBox WB = WhiteBox.getWhiteBox(); |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
43 |
|
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
44 |
public static void main(String [] args) { |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
45 |
WB.youngGC(); |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
46 |
} |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
47 |
} |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
diff
changeset
|
48 |