test/hotspot/jtreg/compiler/arguments/TestScavengeRootsInCode.java
author iignatyev
Mon, 18 Feb 2019 09:31:07 -0800
changeset 53791 bec6c8739833
parent 52680 ca9459361300
permissions -rw-r--r--
8219157: vm/mlvm/mixed/stress/java/findDeadlock should be problem-listed only on mac Reviewed-by: thartmann
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52634
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     1
/*
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     4
 *
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     7
 * published by the Free Software Foundation.
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     8
 *
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    13
 * accompanied this code).
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    14
 *
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    18
 *
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    21
 * questions.
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    22
 */
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    23
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    24
/*
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    25
 * @test
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    26
 * @bug 8214025
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    27
 * @summary Test compilation with non-default value for ScavengeRootsInCode.
52680
ca9459361300 8214242: compiler/arguments/TestScavengeRootsInCode.java fails because of missing UnlockDiagnosticVMOptions
thartmann
parents: 52634
diff changeset
    28
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -Xcomp -XX:-TieredCompilation
52634
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    29
 *                   -XX:ScavengeRootsInCode=1 compiler.arguments.TestScavengeRootsInCode
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    30
 */
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    31
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    32
package compiler.arguments;
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    33
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    34
public class TestScavengeRootsInCode {
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    35
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    36
    static public void main(String[] args) {
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    37
        System.out.println("Passed");
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    38
    }
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    39
}
85283f9565da 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
thartmann
parents:
diff changeset
    40