Mercurial > hg > truffle
comparison src/share/tools/whitebox/sun/hotspot/WhiteBox.java @ 8051:12e01444ca2d
8006683: Add WhiteBox API to testing of compiler
Reviewed-by: kvn, vlivanov
author | iignatyev |
---|---|
date | Wed, 13 Feb 2013 08:29:04 -0800 |
parents | 4102b59539ce |
children |
comparison
equal
deleted
inserted
replaced
8050:aaad39923cdb | 8051:12e01444ca2d |
---|---|
21 * questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 package sun.hotspot; | 25 package sun.hotspot; |
26 | |
27 import java.lang.reflect.Method; | |
26 import java.security.BasicPermission; | 28 import java.security.BasicPermission; |
27 import sun.hotspot.parser.DiagnosticCommand; | 29 import sun.hotspot.parser.DiagnosticCommand; |
28 | 30 |
29 public class WhiteBox { | 31 public class WhiteBox { |
30 | 32 |
79 | 81 |
80 // NMT | 82 // NMT |
81 public native boolean NMTAllocTest(); | 83 public native boolean NMTAllocTest(); |
82 public native boolean NMTFreeTestMemory(); | 84 public native boolean NMTFreeTestMemory(); |
83 public native boolean NMTWaitForDataMerge(); | 85 public native boolean NMTWaitForDataMerge(); |
86 | |
87 // Compiler | |
88 public native void deoptimizeAll(); | |
89 public native boolean isMethodCompiled(Method method); | |
90 public native boolean isMethodCompilable(Method method); | |
91 public native boolean isMethodQueuedForCompilation(Method method); | |
92 public native int deoptimizeMethod(Method method); | |
93 public native void makeMethodNotCompilable(Method method); | |
94 public native int getMethodCompilationLevel(Method method); | |
95 public native boolean setDontInlineMethod(Method method, boolean value); | |
96 public native int getCompileQueuesSize(); | |
84 } | 97 } |