test/hotspot/jtreg/gc/stress/gclocker/TestGCLockerWithCMS.java
author kvn
Thu, 07 Jun 2018 17:38:34 -0700
changeset 50455 2b73cce96dce
parent 47216 71c04702a3d5
child 53523 4c5184c56dc2
permissions -rw-r--r--
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal Reviewed-by: iignatyev, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46397
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     1
/*
50455
2b73cce96dce 8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents: 47216
diff changeset
     2
 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
46397
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     4
 *
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     7
 * published by the Free Software Foundation.
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     8
 *
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    13
 * accompanied this code).
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    14
 *
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    18
 *
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    21
 * questions.
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    22
 *
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    23
 */
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    24
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    25
/*
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    26
 * @test TestGCLockerWithCMS
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    27
 * @key gc
50455
2b73cce96dce 8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents: 47216
diff changeset
    28
 * @requires vm.gc.ConcMarkSweep & !vm.graal.enabled
46397
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    29
 * @summary Stress CMS' GC locker by calling GetPrimitiveArrayCritical while concurrently filling up old gen.
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    30
 * @run main/native/othervm/timeout=200 -Xlog:gc*=info -Xms1500m -Xmx1500m -XX:+UseConcMarkSweepGC TestGCLockerWithCMS
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    31
 */
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    32
public class TestGCLockerWithCMS {
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    33
    public static void main(String[] args) {
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    34
        String[] testArgs = {"2", "CMS Old Gen"};
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    35
        TestGCLocker.main(testArgs);
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    36
    }
2dd13ff72976 8177968: Add GC stress test TestGCLocker
ehelin
parents:
diff changeset
    37
}