Mercurial > hg > graal-compiler
comparison test/testlibrary/whitebox/sun/hotspot/WhiteBox.java @ 10113:4b2eebe03f93
8011971: WB API doesn't accept j.l.reflect.Constructor
Reviewed-by: kvn, vlivanov
author | iignatyev |
---|---|
date | Tue, 16 Apr 2013 10:04:01 -0700 |
parents | 7a5aec879506 |
children | 01d5f04e64dc |
comparison
equal
deleted
inserted
replaced
10112:c89eab0b6b30 | 10113:4b2eebe03f93 |
---|---|
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 package sun.hotspot; | 25 package sun.hotspot; |
26 | 26 |
27 import java.lang.reflect.Method; | 27 import java.lang.reflect.Executable; |
28 import java.security.BasicPermission; | 28 import java.security.BasicPermission; |
29 import sun.hotspot.parser.DiagnosticCommand; | 29 import sun.hotspot.parser.DiagnosticCommand; |
30 | 30 |
31 public class WhiteBox { | 31 public class WhiteBox { |
32 | 32 |
88 public native void NMTReleaseMemory(long addr, long size); | 88 public native void NMTReleaseMemory(long addr, long size); |
89 public native boolean NMTWaitForDataMerge(); | 89 public native boolean NMTWaitForDataMerge(); |
90 | 90 |
91 // Compiler | 91 // Compiler |
92 public native void deoptimizeAll(); | 92 public native void deoptimizeAll(); |
93 public native boolean isMethodCompiled(Method method); | 93 public native boolean isMethodCompiled(Executable method); |
94 public boolean isMethodCompilable(Method method) { | 94 public boolean isMethodCompilable(Executable method) { |
95 return isMethodCompilable(method, -1 /*any*/); | 95 return isMethodCompilable(method, -1 /*any*/); |
96 } | 96 } |
97 public native boolean isMethodCompilable(Method method, int compLevel); | 97 public native boolean isMethodCompilable(Executable method, int compLevel); |
98 public native boolean isMethodQueuedForCompilation(Method method); | 98 public native boolean isMethodQueuedForCompilation(Executable method); |
99 public native int deoptimizeMethod(Method method); | 99 public native int deoptimizeMethod(Executable method); |
100 public native void makeMethodNotCompilable(Method method); | 100 public void makeMethodNotCompilable(Executable method) { |
101 public native int getMethodCompilationLevel(Method method); | 101 makeMethodNotCompilable(method, -1 /*any*/); |
102 public native boolean testSetDontInlineMethod(Method method, boolean value); | 102 } |
103 public native void makeMethodNotCompilable(Executable method, int compLevel); | |
104 public native int getMethodCompilationLevel(Executable method); | |
105 public native boolean testSetDontInlineMethod(Executable method, boolean value); | |
103 public native int getCompileQueuesSize(); | 106 public native int getCompileQueuesSize(); |
104 public native boolean testSetForceInlineMethod(Method method, boolean value); | 107 public native boolean testSetForceInlineMethod(Executable method, boolean value); |
105 public native boolean enqueueMethodForCompilation(Method method, int compLevel); | 108 public native boolean enqueueMethodForCompilation(Executable method, int compLevel); |
106 public native void clearMethodState(Method method); | 109 public native void clearMethodState(Executable method); |
107 | 110 |
108 //Intered strings | 111 // Intered strings |
109 public native boolean isInStringTable(String str); | 112 public native boolean isInStringTable(String str); |
110 | 113 |
111 // force Full GC | 114 // force Full GC |
112 public native void fullGC(); | 115 public native void fullGC(); |
113 } | 116 } |