hotspot/test/sanity/WBApi.java
author mduigou
Fri, 25 Jan 2013 16:13:39 -0800
changeset 15311 be0ff4a719bf
parent 12095 cc3d6f08a4c4
child 15793 4867678e3517
permissions -rw-r--r--
8004201: Add static utility methods to primitives to be used for redution operations. Reviewed-by: darcy, mduigou, briangoetz, dholmes Contributed-by: akhil.arora@oracle.com

/*
 * @test WBApi
 * @summary verify that whitebox functions can be linked and executed
 * @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI WBApi.java
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
 */

import sun.hotspot.WhiteBox;
public class WBApi {
    public static void main(String... args) {
        System.out.printf("args at: %x\n",WhiteBox.getWhiteBox().getObjectAddress(args));
    }
}