NativeInvokeSpecial2NativeTest.java revision 12638:87d0e817fe46
11638Srgrimes/*
21638Srgrimes * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
31638Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
41638Srgrimes *
51638Srgrimes * This code is free software; you can redistribute it and/or modify it
61638Srgrimes * under the terms of the GNU General Public License version 2 only, as
71638Srgrimes * published by the Free Software Foundation.
81638Srgrimes *
91638Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT
101638Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
111638Srgrimes * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
121638Srgrimes * version 2 for more details (a copy is included in the LICENSE file that
131638Srgrimes * accompanied this code).
141638Srgrimes *
151638Srgrimes * You should have received a copy of the GNU General Public License version
161638Srgrimes * 2 along with this work; if not, write to the Free Software Foundation,
171638Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
181638Srgrimes *
191638Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
201638Srgrimes * or visit www.oracle.com if you need additional information or have any
211638Srgrimes * questions.
221638Srgrimes */
231638Srgrimes
241638Srgrimes/*
251638Srgrimes * @test
261638Srgrimes * @summary check calls from native to native using InvokeSpecial
271638Srgrimes * @modules java.base/jdk.internal.misc
281638Srgrimes * @library /test/lib /
291638Srgrimes *
301638Srgrimes * @build sun.hotspot.WhiteBox
311638Srgrimes * @run driver ClassFileInstaller sun.hotspot.WhiteBox
321638Srgrimes *    sun.hotspot.WhiteBox$WhiteBoxPermission
3350476Speter * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
341638Srgrimes *    compiler.calls.common.InvokeSpecial
35163591Sru *    -nativeCaller -nativeCallee
361638Srgrimes */
3779538Sru