hotspot/test/gc/g1/TestEagerReclaimHumongousRegionsClearMarkBits.java
author brutisso
Thu, 10 Dec 2015 14:57:55 +0100
changeset 35061 be6025ebffea
parent 33806 4160a3c28ce8
child 36851 03e2f4d0a421
permissions -rw-r--r--
8145092: Use Unified Logging for the GC logging Summary: JEP-271. VM changes contributed by brutisso, test changes contributed by david. Reviewed-by: sjohanss, david, brutisso Contributed-by: bengt.rutisson@oracle.com, david.lindholm@oralce.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     1
/*
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28379
diff changeset
     2
 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     4
 *
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     7
 * published by the Free Software Foundation.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     8
 *
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    13
 * accompanied this code).
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    14
 *
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    18
 *
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    21
 * questions.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    22
 */
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    23
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    24
/*
28379
e6784fc8fff2 8048179: Early reclaim of large objects that are referenced by a few objects
tschatzl
parents: 26154
diff changeset
    25
 * @test TestEagerReclaimHumongousRegionsClearMarkBits
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    26
 * @bug 8051973
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    27
 * @summary Test to make sure that eager reclaim of humongous objects correctly clears
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    28
 * mark bitmaps at reclaim.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    29
 * @key gc
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    30
 * @library /testlibrary
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28379
diff changeset
    31
 * @modules java.base/sun.misc
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28379
diff changeset
    32
 *          java.management
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    33
 */
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    34
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    35
import java.util.ArrayList;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    36
import java.util.LinkedList;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    37
import java.util.Random;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    38
30604
b8d532cb6420 8067013: Rename the com.oracle.java.testlibary package
ykantser
parents: 29678
diff changeset
    39
import jdk.test.lib.OutputAnalyzer;
b8d532cb6420 8067013: Rename the com.oracle.java.testlibary package
ykantser
parents: 29678
diff changeset
    40
import jdk.test.lib.ProcessTools;
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    41
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    42
// An object that has a few references to other instances to slow down marking.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    43
class ObjectWithSomeRefs {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    44
    public ObjectWithSomeRefs other1;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    45
    public ObjectWithSomeRefs other2;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    46
    public ObjectWithSomeRefs other3;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    47
    public ObjectWithSomeRefs other4;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    48
}
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    49
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    50
class ReclaimRegionFast {
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    51
    public static final long MAX_MILLIS_FOR_RUN = 50 * 1000; // The maximum runtime for the actual test.
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    52
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    53
    public static final int M = 1024*1024;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    54
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    55
    public static LinkedList<Object> garbageList = new LinkedList<Object>();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    56
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    57
    public static void genGarbage(Object large) {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    58
        for (int i = 0; i < 64*1024; i++) {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    59
            Object[] garbage = new Object[50];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    60
            garbage[0] = large;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    61
            garbageList.add(garbage);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    62
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    63
        garbageList.clear();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    64
    }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    65
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    66
    public static ArrayList<ObjectWithSomeRefs> longList = new ArrayList<ObjectWithSomeRefs>();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    67
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    68
    public static void main(String[] args) {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    69
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    70
        for (int i = 0; i < 16*1024; i++) {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    71
             longList.add(new ObjectWithSomeRefs());
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    72
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    73
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    74
        Random rnd = new Random();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    75
        for (int i = 0; i < longList.size(); i++) {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    76
             int len = longList.size();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    77
             longList.get(i).other1 = longList.get(rnd.nextInt(len));
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    78
             longList.get(i).other2 = longList.get(rnd.nextInt(len));
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    79
             longList.get(i).other3 = longList.get(rnd.nextInt(len));
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    80
             longList.get(i).other4 = longList.get(rnd.nextInt(len));
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    81
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    82
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    83
        int[] large1 = new int[M];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    84
        int[] large2 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    85
        int[] large3 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    86
        int[] large4 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    87
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    88
        Object ref_from_stack = large1;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    89
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    90
        long start_millis = System.currentTimeMillis();
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    91
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    92
        for (int i = 0; i < 20; i++) {
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    93
            long current_millis = System.currentTimeMillis();
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    94
            if ((current_millis - start_millis) > MAX_MILLIS_FOR_RUN) {
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    95
              System.out.println("Finishing test because maximum runtime exceeded");
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    96
              break;
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    97
            }
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    98
            // A set of large objects that will be reclaimed eagerly - and hopefully marked.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    99
            large1 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   100
            large2 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   101
            large3 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   102
            large4 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   103
            genGarbage(large1);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   104
            // Make sure that the compiler cannot completely remove
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   105
            // the allocation of the large object until here.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   106
            System.out.println(large1 + " " + large2 + " " + large3 + " " + large4);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   107
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   108
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   109
        // Keep the reference to the first object alive.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   110
        System.out.println(ref_from_stack);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   111
    }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   112
}
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   113
28379
e6784fc8fff2 8048179: Early reclaim of large objects that are referenced by a few objects
tschatzl
parents: 26154
diff changeset
   114
public class TestEagerReclaimHumongousRegionsClearMarkBits {
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   115
    public static void main(String[] args) throws Exception {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   116
        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   117
            "-XX:+UseG1GC",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   118
            "-Xms128M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   119
            "-Xmx128M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   120
            "-Xmn2M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   121
            "-XX:G1HeapRegionSize=1M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   122
            "-XX:InitiatingHeapOccupancyPercent=0", // Want to have as much as possible initial marks.
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents: 33806
diff changeset
   123
            "-Xlog:gc",
33806
4160a3c28ce8 8141654: Tests missing -XX:+UnlockDiagnosticVMOptions
kbarrett
parents: 30604
diff changeset
   124
            "-XX:+UnlockDiagnosticVMOptions",
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   125
            "-XX:+VerifyAfterGC",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   126
            "-XX:ConcGCThreads=1", // Want to make marking as slow as possible.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   127
            "-XX:+IgnoreUnrecognizedVMOptions", // G1VerifyBitmaps is develop only.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   128
            "-XX:+G1VerifyBitmaps",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   129
            ReclaimRegionFast.class.getName());
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   130
        OutputAnalyzer output = new OutputAnalyzer(pb.start());
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   131
        output.shouldHaveExitValue(0);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   132
    }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   133
}
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   134