Cross Reference: WBApi.java
xref
: /
openjdk7
/
hotspot
/
test
/
sanity
/
WBApi.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
WBApi.java revision 3586
3586
N/A
/*
3586
N/A
* @test WBApi
3586
N/A
* @summary verify that whitebox functions can be linked and executed
3586
N/A
* @run compile -J-XX:+UnlockDiagnosticVMOptions -J-XX:+WhiteBoxAPI
WBApi.java
3586
N/A
* @run
main
/
othervm
-XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI WBApi
3586
N/A
*/
3586
N/A
3586
N/A
import
sun
.
hotspot
.
WhiteBox
;
3586
N/A
public
class
WBApi
{
3586
N/A
public
static
void
main
(
String
...
args
) {
3586
N/A
System
.
out
.
printf
(
"args at: %x\n"
,
WhiteBox
.
getWhiteBox
().
getObjectAddress
(
args
));
3586
N/A
}
3586
N/A
}