hotspot/test/compiler/jvmci/compilerToVM/MaterializeVirtualObjectTest.java
author twisti
Wed, 04 Nov 2015 07:23:23 -1000
changeset 33632 038347770a9e
parent 33191 e155b02f22fc
child 33813 4f376e851453
permissions -rw-r--r--
8139170: JVMCI refresh Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     1
/*
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     4
 *
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     8
 *
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    13
 * accompanied this code).
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    14
 *
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    18
 *
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    21
 * questions.
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    22
 */
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    23
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    24
/*
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    25
 * @test
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    26
 * @bug 8136421
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    27
 * @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    28
 * @library / /testlibrary /../../test/lib
33191
e155b02f22fc 8139707: [TESTBUG] Quarantine unstable compiler/jvmci tests
iignatyev
parents: 33184
diff changeset
    29
 * @ignore 8139703
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    30
 * @compile ../common/CompilerToVMHelper.java
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    31
 * @build sun.hotspot.WhiteBox MaterializeVirtualObjectTest
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    32
 * @run main ClassFileInstaller sun.hotspot.WhiteBox
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    33
 *                              sun.hotspot.WhiteBox$WhiteBoxPermission
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    34
 *                              jdk.vm.ci.hotspot.CompilerToVMHelper
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    35
 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    36
 *     -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    37
 *     -XX:CompileCommand=exclude,*::check -XX:+DoEscapeAnalysis -Xbatch
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    38
 *     -Dcompiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.invalidate=false
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    39
 *     compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    40
 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    41
 *     -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    42
 *     -XX:CompileCommand=exclude,*::check -XX:+DoEscapeAnalysis -Xbatch
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    43
 *     -Dcompiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.invalidate=true
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    44
 *     compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    45
 */
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    46
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    47
package compiler.jvmci.compilerToVM;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    48
33632
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    49
import java.lang.reflect.Method;
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    50
import jdk.vm.ci.hotspot.HotSpotStackFrameReference;
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    51
import jdk.vm.ci.meta.ResolvedJavaMethod;
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    52
import jdk.vm.ci.hotspot.CompilerToVMHelper;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    53
import jdk.test.lib.Asserts;
33632
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    54
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    55
import compiler.jvmci.common.CTVMUtilities;
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    56
import compiler.testlibrary.CompilerUtils;
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    57
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    58
import sun.hotspot.WhiteBox;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    59
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    60
public class MaterializeVirtualObjectTest {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    61
    private static final WhiteBox WB = WhiteBox.getWhiteBox();
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    62
    private static final Method METHOD;
33632
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
    63
    private static final ResolvedJavaMethod RESOLVED_METHOD;
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    64
    private static final boolean INVALIDATE = Boolean.getBoolean(
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    65
            "compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.invalidate");
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    66
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    67
    static {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    68
        try {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    69
            METHOD = MaterializeVirtualObjectTest.class.getDeclaredMethod(
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    70
                    "testFrame", String.class, boolean.class);
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    71
        } catch (NoSuchMethodException e) {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    72
            throw new Error("Can't get executable for test method", e);
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    73
        }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    74
        RESOLVED_METHOD = CTVMUtilities.getResolvedMethod(METHOD);
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    75
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    76
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    77
    public static void main(String[] args) {
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    78
        int levels[] = CompilerUtils.getAvailableCompilationLevels();
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    79
        // we need compilation level 4 to use EscapeAnalysis
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    80
        if (levels.length < 1 || levels[levels.length - 1] != 4) {
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    81
            System.out.println("INFO: Test needs compilation level 4 to"
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    82
                    + " be available. Skipping.");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    83
        } else {
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    84
            new MaterializeVirtualObjectTest().test();
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    85
        }
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    86
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    87
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    88
    private static String getName() {
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    89
        return "CASE: invalidate=" + INVALIDATE;
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    90
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    91
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
    92
    private void test() {
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    93
        System.out.println(getName());
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    94
        Asserts.assertFalse(WB.isMethodCompiled(METHOD), getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    95
                + " : method unexpectedly compiled");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    96
        /* need to call testFrame at least once to be able to compile it, so
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    97
           calling with materialize=false, because testFrame is not compiled */
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    98
        testFrame("someString", /* materialize= */ false);
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
    99
        WB.enqueueMethodForCompilation(METHOD, 4);
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   100
        Asserts.assertTrue(WB.isMethodCompiled(METHOD), getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   101
                + "Method unexpectedly not compiled");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   102
        // calling with materialize=true to materialize compiled testFrame
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   103
        testFrame("someString", /* materialize= */ true);
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   104
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   105
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   106
    private void testFrame(String str, boolean materialize) {
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   107
        Helper helper = new Helper(str);
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   108
        check(materialize);
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   109
        Asserts.assertTrue((helper.string != null) && (this != null)
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   110
                && (helper != null), getName() + " : some locals are null");
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   111
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   112
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   113
    private void check(boolean materialize) {
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   114
        // Materialize virtual objects on last invocation
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   115
        if (materialize) {
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   116
            HotSpotStackFrameReference hsFrame = CompilerToVMHelper
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   117
                    .getNextStackFrame(/* topmost frame */ null,
33632
038347770a9e 8139170: JVMCI refresh
twisti
parents: 33191
diff changeset
   118
                            new ResolvedJavaMethod[]{
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   119
                                RESOLVED_METHOD}, /* don't skip any */ 0);
33184
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   120
            Asserts.assertNotNull(hsFrame, getName() + " : got null frame");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   121
            Asserts.assertTrue(WB.isMethodCompiled(METHOD), getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   122
                    + "Test method should be compiled");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   123
            Asserts.assertTrue(hsFrame.hasVirtualObjects(), getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   124
                    + ": has no virtual object before materialization");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   125
            CompilerToVMHelper.materializeVirtualObjects(hsFrame, INVALIDATE);
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   126
            Asserts.assertFalse(hsFrame.hasVirtualObjects(), getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   127
                    + " : has virtual object after materialization");
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   128
            Asserts.assertEQ(WB.isMethodCompiled(METHOD), !INVALIDATE, getName()
db796ab93ba7 8139438: [TESTBUG] JVMCI test fails with RuntimeException: Has no virtual object before materialization
dpochepk
parents: 33160
diff changeset
   129
                    + " : unexpected compiled status");
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   130
        }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   131
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   132
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   133
    private class Helper {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   134
        public String string;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   135
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   136
        public Helper(String s) {
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   137
            this.string = s;
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   138
        }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   139
    }
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
diff changeset
   140
}