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