NativeInvokeVirtual2NativeTest.java revision 9794:4650b087ab55
1227825Stheraven/*
2227825Stheraven * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3227825Stheraven * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4227825Stheraven *
5227825Stheraven * This code is free software; you can redistribute it and/or modify it
6227825Stheraven * under the terms of the GNU General Public License version 2 only, as
7227825Stheraven * published by the Free Software Foundation.
8227825Stheraven *
9227825Stheraven * This code is distributed in the hope that it will be useful, but WITHOUT
10227825Stheraven * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11227825Stheraven * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12227825Stheraven * version 2 for more details (a copy is included in the LICENSE file that
13227825Stheraven * accompanied this code).
14227825Stheraven *
15227825Stheraven * You should have received a copy of the GNU General Public License version
16227825Stheraven * 2 along with this work; if not, write to the Free Software Foundation,
17227825Stheraven * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18227825Stheraven *
19227825Stheraven * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20227825Stheraven * or visit www.oracle.com if you need additional information or have any
21227825Stheraven * questions.
22227825Stheraven */
23227825Stheraven
24227825Stheraven/*
25227825Stheraven * @test
26227825Stheraven * @library /test/lib /testlibrary /
27227825Stheraven * @build compiler.calls.common.InvokeVirtual
28227825Stheraven * @run driver ClassFileInstaller sun.hotspot.WhiteBox
29227825Stheraven *    sun.hotspot.WhiteBox$WhiteBoxPermission
30227825Stheraven * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
31227825Stheraven *    compiler.calls.common.InvokeVirtual
32227825Stheraven *    -nativeCaller -nativeCallee
33227825Stheraven * @summary check calls from native to native using InvokeVirtual
34227825Stheraven */
35227825Stheraven