annotate test/sanity/WBApi.java @ 7425:1e41b0bc58a0
8004318: JEP-171: Support Unsafe fences intrinsics
Summary: Add three memory-ordering intrinsics to the sun.misc.Unsafe class.
Reviewed-by: twisti, kvn
Contributed-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
author |
kvn |
date |
Tue, 18 Dec 2012 17:37:44 -0800 |
parents |
2d503de963b3 |
children |
1b0dc9f87e75 |
rev |
line source |
5915
|
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 }
|