145 }
146 public void makeMethodNotCompilable(Executable method, int compLevel) {
147 makeMethodNotCompilable(method, compLevel, false /*not osr*/);
148 }
149 public native void makeMethodNotCompilable(Executable method, int compLevel, boolean isOsr);
150 public int getMethodCompilationLevel(Executable method) {
151 return getMethodCompilationLevel(method, false /*not ost*/);
152 }
153 public native int getMethodCompilationLevel(Executable method, boolean isOsr);
154 public native boolean testSetDontInlineMethod(Executable method, boolean value);
155 public int getCompileQueuesSize() {
156 return getCompileQueueSize(-1 /*any*/);
157 }
158 public native int getCompileQueueSize(int compLevel);
159 public native boolean testSetForceInlineMethod(Executable method, boolean value);
160 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
161 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
162 }
163 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
164 public native void clearMethodState(Executable method);
165 public native int getMethodEntryBci(Executable method);
166 public native Object[] getNMethod(Executable method, boolean isOsr);
167
168 // Intered strings
169 public native boolean isInStringTable(String str);
170
171 // Memory
172 public native void readReservedMemory();
173 public native long allocateMetaspace(ClassLoader classLoader, long size);
174 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
175 public native long incMetaspaceCapacityUntilGC(long increment);
176 public native long metaspaceCapacityUntilGC();
177
178 // Force Young GC
179 public native void youngGC();
180
181 // Force Full GC
182 public native void fullGC();
183
184 // Method tries to start concurrent mark cycle.
|
145 }
146 public void makeMethodNotCompilable(Executable method, int compLevel) {
147 makeMethodNotCompilable(method, compLevel, false /*not osr*/);
148 }
149 public native void makeMethodNotCompilable(Executable method, int compLevel, boolean isOsr);
150 public int getMethodCompilationLevel(Executable method) {
151 return getMethodCompilationLevel(method, false /*not ost*/);
152 }
153 public native int getMethodCompilationLevel(Executable method, boolean isOsr);
154 public native boolean testSetDontInlineMethod(Executable method, boolean value);
155 public int getCompileQueuesSize() {
156 return getCompileQueueSize(-1 /*any*/);
157 }
158 public native int getCompileQueueSize(int compLevel);
159 public native boolean testSetForceInlineMethod(Executable method, boolean value);
160 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
161 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
162 }
163 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
164 public native void clearMethodState(Executable method);
165 public native void markMethodProfiled(Executable method);
166 public native int getMethodEntryBci(Executable method);
167 public native Object[] getNMethod(Executable method, boolean isOsr);
168
169 // Intered strings
170 public native boolean isInStringTable(String str);
171
172 // Memory
173 public native void readReservedMemory();
174 public native long allocateMetaspace(ClassLoader classLoader, long size);
175 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
176 public native long incMetaspaceCapacityUntilGC(long increment);
177 public native long metaspaceCapacityUntilGC();
178
179 // Force Young GC
180 public native void youngGC();
181
182 // Force Full GC
183 public native void fullGC();
184
185 // Method tries to start concurrent mark cycle.
|