149 return parseCommandLine0(commandline, delim, args);
150 }
151
152 // Parallel GC
153 public native long psVirtualSpaceAlignment();
154 public native long psHeapGenerationAlignment();
155
156 // NMT
157 public native long NMTMalloc(long size);
158 public native void NMTFree(long mem);
159 public native long NMTReserveMemory(long size);
160 public native void NMTCommitMemory(long addr, long size);
161 public native void NMTUncommitMemory(long addr, long size);
162 public native void NMTReleaseMemory(long addr, long size);
163 public native long NMTMallocWithPseudoStack(long size, int index);
164 public native boolean NMTChangeTrackingLevel();
165 public native int NMTGetHashSize();
166
167 // Compiler
168 public native int matchesMethod(Executable method, String pattern);
169 public native int deoptimizeFrames(boolean makeNotEntrant);
170 public native void deoptimizeAll();
171 public boolean isMethodCompiled(Executable method) {
172 return isMethodCompiled(method, false /*not osr*/);
173 }
174 private native boolean isMethodCompiled0(Executable method, boolean isOsr);
175 public boolean isMethodCompiled(Executable method, boolean isOsr){
176 Objects.requireNonNull(method);
177 return isMethodCompiled0(method, isOsr);
178 }
179 public boolean isMethodCompilable(Executable method) {
180 return isMethodCompilable(method, -1 /*any*/);
181 }
182 public boolean isMethodCompilable(Executable method, int compLevel) {
183 return isMethodCompilable(method, compLevel, false /*not osr*/);
184 }
185 private native boolean isMethodCompilable0(Executable method, int compLevel, boolean isOsr);
186 public boolean isMethodCompilable(Executable method, int compLevel, boolean isOsr) {
187 Objects.requireNonNull(method);
188 return isMethodCompilable0(method, compLevel, isOsr);
|
149 return parseCommandLine0(commandline, delim, args);
150 }
151
152 // Parallel GC
153 public native long psVirtualSpaceAlignment();
154 public native long psHeapGenerationAlignment();
155
156 // NMT
157 public native long NMTMalloc(long size);
158 public native void NMTFree(long mem);
159 public native long NMTReserveMemory(long size);
160 public native void NMTCommitMemory(long addr, long size);
161 public native void NMTUncommitMemory(long addr, long size);
162 public native void NMTReleaseMemory(long addr, long size);
163 public native long NMTMallocWithPseudoStack(long size, int index);
164 public native boolean NMTChangeTrackingLevel();
165 public native int NMTGetHashSize();
166
167 // Compiler
168 public native int matchesMethod(Executable method, String pattern);
169 public native int matchesInline(Executable method, String pattern);
170 public native boolean shouldPrintAssembly(Executable method);
171 public native int deoptimizeFrames(boolean makeNotEntrant);
172 public native void deoptimizeAll();
173 public boolean isMethodCompiled(Executable method) {
174 return isMethodCompiled(method, false /*not osr*/);
175 }
176 private native boolean isMethodCompiled0(Executable method, boolean isOsr);
177 public boolean isMethodCompiled(Executable method, boolean isOsr){
178 Objects.requireNonNull(method);
179 return isMethodCompiled0(method, isOsr);
180 }
181 public boolean isMethodCompilable(Executable method) {
182 return isMethodCompilable(method, -1 /*any*/);
183 }
184 public boolean isMethodCompilable(Executable method, int compLevel) {
185 return isMethodCompilable(method, compLevel, false /*not osr*/);
186 }
187 private native boolean isMethodCompilable0(Executable method, int compLevel, boolean isOsr);
188 public boolean isMethodCompilable(Executable method, int compLevel, boolean isOsr) {
189 Objects.requireNonNull(method);
190 return isMethodCompilable0(method, compLevel, isOsr);
|