WBApi.java revision 3586
3586N/A/*
3586N/A * @test WBApi
3586N/A * @summary verify that whitebox functions can be linked and executed
3586N/A * @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI WBApi.java
3586N/A * @run main/othervm -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}