aboutsummaryrefslogtreecommitdiff
path: root/test/sanity/WBApi.java
blob: 79a51641f905f029584cfb88b929fbbf418db70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * @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));
    }
}