Mercurial > hg > truffle
diff test/testlibrary/whitebox/sun/hotspot/WhiteBox.java @ 20451:e2452c3ff7fb
8057752: WhiteBox extension support for testing
Summary: Refactored parts of whitebox.cpp to enable registration of whitebox methods defined outside this file.
Reviewed-by: mikael, ctornqvi, jmasa
author | sjohanss |
---|---|
date | Mon, 08 Sep 2014 15:24:10 +0200 |
parents | f433f37645e5 |
children | b509b7ff561c |
line wrap: on
line diff
--- a/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java Wed Sep 10 16:06:53 2014 -0700 +++ b/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java Mon Sep 08 15:24:10 2014 +0200 @@ -30,6 +30,7 @@ import java.util.function.Function; import java.util.stream.Stream; import java.security.BasicPermission; + import sun.hotspot.parser.DiagnosticCommand; public class WhiteBox { @@ -168,6 +169,12 @@ // CPU features public native String getCPUFeatures(); + // Native extensions + public native long getHeapUsageForContext(int context); + public native long getHeapRegionCountForContext(int context); + public native int getContextForObject(Object obj); + public native void printRegionInfo(int context); + // VM flags public native void setBooleanVMFlag(String name, boolean value); public native void setIntxVMFlag(String name, long value);