74 FullOptimization 75 } 76 77 /** 78 * Potentially modifies the compilation level currently selected by the VM compilation policy 79 * for a method. 80 * 81 * @param declaringClass the class in which the method is declared 82 * @param name the name of the method or {@code null} depending on the value that was returned 83 * by {@link #getCompilationLevelAdjustment()} 84 * @param signature the signature of the method or {@code null} depending on the value that was 85 * returned by {@link #getCompilationLevelAdjustment()} 86 * @param isOsr specifies if the compilation being scheduled in an OSR compilation 87 * @param level the compilation level currently selected by the VM compilation policy 88 * @return the compilation level to use for the compilation being scheduled (must be a valid 89 * {@code CompLevel} enum value) 90 */ 91 public CompilationLevel adjustCompilationLevel(Class<?> declaringClass, String name, String signature, boolean isOsr, CompilationLevel level) { 92 throw new InternalError("Should not reach here"); 93 } 94 } | 74 FullOptimization 75 } 76 77 /** 78 * Potentially modifies the compilation level currently selected by the VM compilation policy 79 * for a method. 80 * 81 * @param declaringClass the class in which the method is declared 82 * @param name the name of the method or {@code null} depending on the value that was returned 83 * by {@link #getCompilationLevelAdjustment()} 84 * @param signature the signature of the method or {@code null} depending on the value that was 85 * returned by {@link #getCompilationLevelAdjustment()} 86 * @param isOsr specifies if the compilation being scheduled in an OSR compilation 87 * @param level the compilation level currently selected by the VM compilation policy 88 * @return the compilation level to use for the compilation being scheduled (must be a valid 89 * {@code CompLevel} enum value) 90 */ 91 public CompilationLevel adjustCompilationLevel(Class<?> declaringClass, String name, String signature, boolean isOsr, CompilationLevel level) { 92 throw new InternalError("Should not reach here"); 93 } 94 95 /** Name of the {@link MBeanInfo MBean} representing the internals 96 * of the current JVMCI compiler. By default returns <code>null</code> 97 * signaling no such bean is present. Overwrite together with {@link #mbean()} 98 * if there is a bean associated with the compiler. 99 * 100 * @return name of the bean or <code>null</code> if no such bean 101 * is provided by the runtime 102 */ 103 public String mbeanName() { 104 return null; 105 } 106 107 /** Instance of the {@link MBeanInfo MBean} representing the internals 108 * of the current JVMCI compiler. By default returns <code>null</code> 109 * signaling no such bean is present. Overwrite together with {@link #mbeanName()} 110 * if there is a bean associated with the compiler. 111 * 112 * @return name of the bean or <code>null</code> if no such bean 113 * is provided by the runtime 114 */ 115 public Object mbean() { 116 return null; 117 } 118 } |