comparison jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotVMEventListener.java @ 22429:a1b0a76567c7

Select default compiler from jvmci.compiler system property.
author Roland Schatz <roland.schatz@oracle.com>
date Mon, 17 Aug 2015 18:32:44 +0200
parents a98a02bad801
children 76af33d4d504
comparison
equal deleted inserted replaced
22428:ca5200277c37 22429:a1b0a76567c7
26 26
27 import jdk.internal.jvmci.code.*; 27 import jdk.internal.jvmci.code.*;
28 import jdk.internal.jvmci.meta.*; 28 import jdk.internal.jvmci.meta.*;
29 29
30 public interface HotSpotVMEventListener { 30 public interface HotSpotVMEventListener {
31
32 /**
33 * Compiles a method to machine code and installs it in the code cache if the compilation is
34 * successful.
35 *
36 * @param metaspaceMethod the address of a Method metaspace object
37 * @param entryBCI the BCI at which to start compiling where -1 denotes a non-OSR compilation
38 * request and all other values denote an OSR compilation request
39 * @param jvmciEnv pointer to native {@code JVMCIEnv} object
40 * @param id a unique identifier for this compilation
41 */
42 default void compileMetaspaceMethod(long metaspaceMethod, int entryBCI, long jvmciEnv, int id) {
43 }
44
45 /**
46 * Notifies this client that HotSpot is running in CompileTheWorld mode and the JVMCI compiler
47 * should now perform its version of CompileTheWorld.
48 */
49 default void notifyCompileTheWorld() throws Throwable {
50 }
51 31
52 /** 32 /**
53 * Notifies this client that the VM is shutting down. 33 * Notifies this client that the VM is shutting down.
54 */ 34 */
55 default void notifyShutdown() { 35 default void notifyShutdown() {