hotspot/test/gc/g1/TestEagerReclaimHumongousRegions2.java
author goetz
Fri, 09 Jan 2015 05:45:13 -0800
changeset 28489 f395f4b55ea1
parent 26154 7a33b179d6c5
permissions -rw-r--r--
8068013: [TESTBUG] Aix support in hotspot jtreg tests Reviewed-by: ctornqvi, fzhinkin, farvidsson
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
/*
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
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
/*
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    25
 * @test TestEagerReclaimHumongousRegions2
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
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    31
 */
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    32
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    33
import java.util.ArrayList;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    34
import java.util.LinkedList;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    35
import java.util.Random;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    36
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    37
import com.oracle.java.testlibrary.OutputAnalyzer;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    38
import com.oracle.java.testlibrary.ProcessTools;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    39
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    40
// 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
    41
class ObjectWithSomeRefs {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    42
    public ObjectWithSomeRefs other1;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    43
    public ObjectWithSomeRefs other2;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    44
    public ObjectWithSomeRefs other3;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    45
    public ObjectWithSomeRefs other4;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    46
}
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    47
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    48
class ReclaimRegionFast {
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    49
    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
    50
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    51
    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
    52
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    53
    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
    54
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    55
    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
    56
        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
    57
            Object[] garbage = new Object[50];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    58
            garbage[0] = large;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    59
            garbageList.add(garbage);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    60
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    61
        garbageList.clear();
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
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    64
    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
    65
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    66
    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
    67
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    68
        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
    69
             longList.add(new ObjectWithSomeRefs());
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    70
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    71
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    72
        Random rnd = new Random();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    73
        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
    74
             int len = longList.size();
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    75
             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
    76
             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
    77
             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
    78
             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
    79
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    80
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    81
        int[] large1 = new int[M];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    82
        int[] large2 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    83
        int[] large3 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    84
        int[] large4 = null;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    85
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    86
        Object ref_from_stack = large1;
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    87
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    88
        long start_millis = System.currentTimeMillis();
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    89
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    90
        for (int i = 0; i < 20; i++) {
26154
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    91
            long current_millis = System.currentTimeMillis();
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    92
            if ((current_millis - start_millis) > MAX_MILLIS_FOR_RUN) {
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    93
              System.out.println("Finishing test because maximum runtime exceeded");
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    94
              break;
7a33b179d6c5 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
tschatzl
parents: 25903
diff changeset
    95
            }
25903
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    96
            // 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
    97
            large1 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    98
            large2 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
    99
            large3 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   100
            large4 = new int[M - 20];
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   101
            genGarbage(large1);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   102
            // 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
   103
            // 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
   104
            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
   105
        }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   106
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   107
        // 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
   108
        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
   109
    }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   110
}
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
public class TestEagerReclaimHumongousRegions2 {
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   113
    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
   114
        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   115
            "-XX:+UseG1GC",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   116
            "-Xms128M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   117
            "-Xmx128M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   118
            "-Xmn2M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   119
            "-XX:G1HeapRegionSize=1M",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   120
            "-XX:InitiatingHeapOccupancyPercent=0", // Want to have as much as possible initial marks.
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   121
            "-XX:+PrintGC",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   122
            "-XX:+VerifyAfterGC",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   123
            "-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
   124
            "-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
   125
            "-XX:+G1VerifyBitmaps",
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   126
            ReclaimRegionFast.class.getName());
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   127
        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
   128
        output.shouldHaveExitValue(0);
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   129
    }
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   130
}
21a77ac2b8c5 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
tschatzl
parents:
diff changeset
   131