168 }
169
170 // Parallel GC
171 public native long psVirtualSpaceAlignment();
172 public native long psHeapGenerationAlignment();
173
174 // NMT
175 public native long NMTMalloc(long size);
176 public native void NMTFree(long mem);
177 public native long NMTReserveMemory(long size);
178 public native void NMTCommitMemory(long addr, long size);
179 public native void NMTUncommitMemory(long addr, long size);
180 public native void NMTReleaseMemory(long addr, long size);
181 public native long NMTMallocWithPseudoStack(long size, int index);
182 public native boolean NMTChangeTrackingLevel();
183 public native int NMTGetHashSize();
184
185 // Compiler
186 public native int matchesMethod(Executable method, String pattern);
187 public native int matchesInline(Executable method, String pattern);
188 public native boolean shouldPrintAssembly(Executable method);
189 public native int deoptimizeFrames(boolean makeNotEntrant);
190 public native void deoptimizeAll();
191
192 @HotSpotIntrinsicCandidate
193 public void deoptimize() {}
194 public boolean isMethodCompiled(Executable method) {
195 return isMethodCompiled(method, false /*not osr*/);
196 }
197 private native boolean isMethodCompiled0(Executable method, boolean isOsr);
198 public boolean isMethodCompiled(Executable method, boolean isOsr){
199 Objects.requireNonNull(method);
200 return isMethodCompiled0(method, isOsr);
201 }
202 public boolean isMethodCompilable(Executable method) {
203 return isMethodCompilable(method, -1 /*any*/);
204 }
205 public boolean isMethodCompilable(Executable method, int compLevel) {
206 return isMethodCompilable(method, compLevel, false /*not osr*/);
207 }
208 private native boolean isMethodCompilable0(Executable method, int compLevel, boolean isOsr);
|
168 }
169
170 // Parallel GC
171 public native long psVirtualSpaceAlignment();
172 public native long psHeapGenerationAlignment();
173
174 // NMT
175 public native long NMTMalloc(long size);
176 public native void NMTFree(long mem);
177 public native long NMTReserveMemory(long size);
178 public native void NMTCommitMemory(long addr, long size);
179 public native void NMTUncommitMemory(long addr, long size);
180 public native void NMTReleaseMemory(long addr, long size);
181 public native long NMTMallocWithPseudoStack(long size, int index);
182 public native boolean NMTChangeTrackingLevel();
183 public native int NMTGetHashSize();
184
185 // Compiler
186 public native int matchesMethod(Executable method, String pattern);
187 public native int matchesInline(Executable method, String pattern);
188 public native boolean shouldPrintAssembly(Executable method, int comp_level);
189 public native int deoptimizeFrames(boolean makeNotEntrant);
190 public native void deoptimizeAll();
191
192 @HotSpotIntrinsicCandidate
193 public void deoptimize() {}
194 public boolean isMethodCompiled(Executable method) {
195 return isMethodCompiled(method, false /*not osr*/);
196 }
197 private native boolean isMethodCompiled0(Executable method, boolean isOsr);
198 public boolean isMethodCompiled(Executable method, boolean isOsr){
199 Objects.requireNonNull(method);
200 return isMethodCompiled0(method, isOsr);
201 }
202 public boolean isMethodCompilable(Executable method) {
203 return isMethodCompilable(method, -1 /*any*/);
204 }
205 public boolean isMethodCompilable(Executable method, int compLevel) {
206 return isMethodCompilable(method, compLevel, false /*not osr*/);
207 }
208 private native boolean isMethodCompilable0(Executable method, int compLevel, boolean isOsr);
|