Mercurial > hg > truffle
comparison test/testlibrary/whitebox/sun/hotspot/WhiteBox.java @ 20249:0c48231c5c84
8038756: new WB API :: get/setVMFlag
Reviewed-by: vlivanov, sla
author | iignatyev |
---|---|
date | Fri, 30 May 2014 17:20:48 +0400 |
parents | 4abb719c5620 |
children | 2c6ef90f030a |
comparison
equal
deleted
inserted
replaced
20248:009de2b033fc | 20249:0c48231c5c84 |
---|---|
127 public int getCompileQueuesSize() { | 127 public int getCompileQueuesSize() { |
128 return getCompileQueueSize(-1 /*any*/); | 128 return getCompileQueueSize(-1 /*any*/); |
129 } | 129 } |
130 public native int getCompileQueueSize(int compLevel); | 130 public native int getCompileQueueSize(int compLevel); |
131 public native boolean testSetForceInlineMethod(Executable method, boolean value); | 131 public native boolean testSetForceInlineMethod(Executable method, boolean value); |
132 public boolean enqueueMethodForCompilation(Executable method, int compLevel) { | 132 public boolean enqueueMethodForCompilation(Executable method, int compLevel) { |
133 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/); | 133 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/); |
134 } | 134 } |
135 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci); | 135 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci); |
136 public native void clearMethodState(Executable method); | 136 public native void clearMethodState(Executable method); |
137 public native int getMethodEntryBci(Executable method); | 137 public native int getMethodEntryBci(Executable method); |
152 public native void readFromNoaccessArea(); | 152 public native void readFromNoaccessArea(); |
153 | 153 |
154 // CPU features | 154 // CPU features |
155 public native String getCPUFeatures(); | 155 public native String getCPUFeatures(); |
156 | 156 |
157 // VM flags | |
158 public native void setBooleanVMFlag(String name, boolean value); | |
159 public native void setIntxVMFlag(String name, long value); | |
160 public native void setUintxVMFlag(String name, long value); | |
161 public native void setUint64VMFlag(String name, long value); | |
162 public native void setStringVMFlag(String name, String value); | |
163 public native void setDoubleVMFlag(String name, double value); | |
164 public native Boolean getBooleanVMFlag(String name); | |
165 public native Long getIntxVMFlag(String name); | |
166 public native Long getUintxVMFlag(String name); | |
167 public native Long getUint64VMFlag(String name); | |
168 public native String getStringVMFlag(String name); | |
169 public native Double getDoubleVMFlag(String name); | |
157 } | 170 } |