hotspot/test/sanity/WBApi.java
changeset 12095 cc3d6f08a4c4
child 15793 4867678e3517
equal deleted inserted replaced
11879:4d13f72fd8bf 12095:cc3d6f08a4c4
       
     1 /*
       
     2  * @test WBApi
       
     3  * @summary verify that whitebox functions can be linked and executed
       
     4  * @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI WBApi.java
       
     5  * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
       
     6  */
       
     7 
       
     8 import sun.hotspot.WhiteBox;
       
     9 public class WBApi {
       
    10     public static void main(String... args) {
       
    11         System.out.printf("args at: %x\n",WhiteBox.getWhiteBox().getObjectAddress(args));
       
    12     }
       
    13 }