AotInvokeInterface2NativeTest.java revision 12408:777aaa19c4b1
1492Sohair/* 21015Smduigou * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. 3492Sohair * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4492Sohair * 5492Sohair * This code is free software; you can redistribute it and/or modify it 6492Sohair * under the terms of the GNU General Public License version 2 only, as 7492Sohair * published by the Free Software Foundation. 8492Sohair * 9492Sohair * This code is distributed in the hope that it will be useful, but WITHOUT 10492Sohair * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11492Sohair * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12492Sohair * version 2 for more details (a copy is included in the LICENSE file that 13492Sohair * accompanied this code). 14492Sohair * 15492Sohair * You should have received a copy of the GNU General Public License version 16492Sohair * 2 along with this work; if not, write to the Free Software Foundation, 17492Sohair * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18492Sohair * 19492Sohair * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20492Sohair * or visit www.oracle.com if you need additional information or have any 21492Sohair * questions. 22492Sohair */ 23492Sohair 24492Sohair/* 25492Sohair * @test 26492Sohair * @library /test/lib /testlibrary / 27492Sohair * @requires vm.bits == "64" & os.arch == "amd64" & os.family == "linux" 28492Sohair * @modules java.base/jdk.internal.misc 29492Sohair * @build compiler.calls.common.InvokeInterface 30492Sohair * compiler.aot.AotCompiler 31492Sohair * @run main ClassFileInstaller sun.hotspot.WhiteBox 321015Smduigou * sun.hotspot.WhiteBox$WhiteBoxPermission 33562Serikj * @run main compiler.aot.AotCompiler -libname AotInvokeInterface2NativeTest.so 34562Serikj * -class compiler.calls.common.InvokeInterface 35562Serikj * -compile compiler.calls.common.InvokeInterface.caller()V 36562Serikj * @run main/othervm/native -XX:+UseAOT 37562Serikj * -XX:AOTLibrary=./AotInvokeInterface2NativeTest.so 38562Serikj * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. 39562Serikj * compiler.calls.common.InvokeInterface -nativeCallee -checkCallerCompileLevel -1 40562Serikj * @summary check calls from aot to native code using invokeinterface 41562Serikj */ 42562Serikj