InterpretedInvokeVirtual2NativeTest.java revision 11707:ad7af1afda7a
1198090Srdivacky/* 2198090Srdivacky * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3198090Srdivacky * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198090Srdivacky * 5198090Srdivacky * This code is free software; you can redistribute it and/or modify it 6198090Srdivacky * under the terms of the GNU General Public License version 2 only, as 7198090Srdivacky * published by the Free Software Foundation. 8198090Srdivacky * 9198090Srdivacky * This code is distributed in the hope that it will be useful, but WITHOUT 10198090Srdivacky * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11218893Sdim * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12218893Sdim * version 2 for more details (a copy is included in the LICENSE file that 13198090Srdivacky * accompanied this code). 14218893Sdim * 15218893Sdim * You should have received a copy of the GNU General Public License version 16218893Sdim * 2 along with this work; if not, write to the Free Software Foundation, 17198090Srdivacky * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18198090Srdivacky * 19198090Srdivacky * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20198090Srdivacky * or visit www.oracle.com if you need additional information or have any 21198090Srdivacky * questions. 22198090Srdivacky */ 23198090Srdivacky 24198090Srdivacky/* 25198090Srdivacky * @test 26198090Srdivacky * @summary check calls from interpreted to native using InvokeVirtual 27218893Sdim * @modules java.base/jdk.internal.misc 28198090Srdivacky * @library /test/lib /testlibrary / 29198090Srdivacky * 30198090Srdivacky * @build compiler.calls.common.InvokeVirtual 31198090Srdivacky * @run driver ClassFileInstaller sun.hotspot.WhiteBox 32198090Srdivacky * sun.hotspot.WhiteBox$WhiteBoxPermission 33198090Srdivacky * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. 34198090Srdivacky * -XX:CompileCommand=exclude,compiler.calls.common.InvokeVirtual::caller compiler.calls.common.InvokeVirtual 35198090Srdivacky * -checkCallerCompileLevel 0 -nativeCallee 36198090Srdivacky */ 37198090Srdivacky