4358N/A/*
4358N/A * Copyright (c) 2012, 2013 Oracle and/or its affiliates. All rights reserved.
4358N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4358N/A *
4358N/A * This code is free software; you can redistribute it and/or modify it
4358N/A * under the terms of the GNU General Public License version 2 only, as
4358N/A * published by the Free Software Foundation.
4358N/A *
4358N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4358N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4358N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4358N/A * version 2 for more details (a copy is included in the LICENSE file that
4358N/A * accompanied this code).
4358N/A *
4358N/A * You should have received a copy of the GNU General Public License version
4358N/A * 2 along with this work; if not, write to the Free Software Foundation,
4358N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4358N/A *
4358N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4358N/A * or visit www.oracle.com if you need additional information or have any
4358N/A * questions.
4358N/A */
4358N/A
3586N/A/*
3586N/A * @test WBApi
3586N/A * @summary verify that whitebox functions can be linked and executed
4358N/A * @library /testlibrary /testlibrary/whitebox
4358N/A * @build WBApi
4358N/A * @run main ClassFileInstaller sun.hotspot.WhiteBox
4358N/A * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
3586N/A */
3586N/A
3586N/Aimport sun.hotspot.WhiteBox;
3586N/Apublic class WBApi {
3586N/A public static void main(String... args) {
3586N/A System.out.printf("args at: %x\n",WhiteBox.getWhiteBox().getObjectAddress(args));
3586N/A }
3586N/A}