334 @SuppressWarnings({"unused"})
335 private CompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id) {
336 CompilationRequestResult result = getCompiler().compileMethod(new HotSpotCompilationRequest(method, entryBCI, jvmciEnv, id));
337 assert result != null : "compileMethod must always return something";
338 return result;
339 }
340
341 /**
342 * Shuts down the runtime.
343 *
344 * Called from the VM.
345 */
346 @SuppressWarnings({"unused"})
347 private void shutdown() throws Exception {
348 for (HotSpotVMEventListener vmEventListener : vmEventListeners) {
349 vmEventListener.notifyShutdown();
350 }
351 }
352
353 /**
354 * Notify on successful install into the CodeCache.
355 *
356 * @param hotSpotCodeCacheProvider
357 * @param installedCode
358 * @param compiledCode
359 */
360 void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) {
361 for (HotSpotVMEventListener vmEventListener : vmEventListeners) {
362 vmEventListener.notifyInstall(hotSpotCodeCacheProvider, installedCode, compiledCode);
363 }
364 }
365
366 private static void printConfig(HotSpotVMConfig config, CompilerToVM vm) {
367 Field[] fields = config.getClass().getDeclaredFields();
368 Map<String, Field> sortedFields = new TreeMap<>();
369 for (Field f : fields) {
370 if (!f.isSynthetic() && !Modifier.isStatic(f.getModifiers())) {
371 f.setAccessible(true);
372 sortedFields.put(f.getName(), f);
373 }
|
334 @SuppressWarnings({"unused"})
335 private CompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id) {
336 CompilationRequestResult result = getCompiler().compileMethod(new HotSpotCompilationRequest(method, entryBCI, jvmciEnv, id));
337 assert result != null : "compileMethod must always return something";
338 return result;
339 }
340
341 /**
342 * Shuts down the runtime.
343 *
344 * Called from the VM.
345 */
346 @SuppressWarnings({"unused"})
347 private void shutdown() throws Exception {
348 for (HotSpotVMEventListener vmEventListener : vmEventListeners) {
349 vmEventListener.notifyShutdown();
350 }
351 }
352
353 /**
354 * Notify on completion of a bootstrap.
355 *
356 * Called from the VM.
357 */
358 @SuppressWarnings({"unused"})
359 private void bootstrapFinished() throws Exception {
360 for (HotSpotVMEventListener vmEventListener : vmEventListeners) {
361 vmEventListener.notifyBootstrapFinished();
362 }
363 }
364
365 /**
366 * Notify on successful install into the CodeCache.
367 *
368 * @param hotSpotCodeCacheProvider
369 * @param installedCode
370 * @param compiledCode
371 */
372 void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) {
373 for (HotSpotVMEventListener vmEventListener : vmEventListeners) {
374 vmEventListener.notifyInstall(hotSpotCodeCacheProvider, installedCode, compiledCode);
375 }
376 }
377
378 private static void printConfig(HotSpotVMConfig config, CompilerToVM vm) {
379 Field[] fields = config.getClass().getDeclaredFields();
380 Map<String, Field> sortedFields = new TreeMap<>();
381 for (Field f : fields) {
382 if (!f.isSynthetic() && !Modifier.isStatic(f.getModifiers())) {
383 f.setAccessible(true);
384 sortedFields.put(f.getName(), f);
385 }
|