768 println(verbose || methodFilters != null,
769 String.format("CompileTheWorld (%d) : Skipping huge method %s (use -XX:-DontCompileHugeMethods or -XX:HugeMethodLimit=%d to include it)", classFileCounter,
770 javaMethod.format("%H.%n(%p):%r"),
771 javaMethod.getCodeSize()));
772 return false;
773 }
774 // Allow use of -XX:CompileCommand=dontinline to exclude problematic methods
775 if (!javaMethod.canBeInlined()) {
776 return false;
777 }
778 // Skip @Snippets for now
779 for (Annotation annotation : javaMethod.getAnnotations()) {
780 if (annotation.annotationType().equals(Snippet.class)) {
781 return false;
782 }
783 }
784 return true;
785 }
786
787 public static void main(String[] args) throws Throwable {
788 Services.exportJVMCITo(CompileTheWorld.class);
789 HotSpotGraalCompiler compiler = (HotSpotGraalCompiler) HotSpotJVMCIRuntime.runtime().getCompiler();
790 compiler.compileTheWorld();
791 }
792 }
|
768 println(verbose || methodFilters != null,
769 String.format("CompileTheWorld (%d) : Skipping huge method %s (use -XX:-DontCompileHugeMethods or -XX:HugeMethodLimit=%d to include it)", classFileCounter,
770 javaMethod.format("%H.%n(%p):%r"),
771 javaMethod.getCodeSize()));
772 return false;
773 }
774 // Allow use of -XX:CompileCommand=dontinline to exclude problematic methods
775 if (!javaMethod.canBeInlined()) {
776 return false;
777 }
778 // Skip @Snippets for now
779 for (Annotation annotation : javaMethod.getAnnotations()) {
780 if (annotation.annotationType().equals(Snippet.class)) {
781 return false;
782 }
783 }
784 return true;
785 }
786
787 public static void main(String[] args) throws Throwable {
788 HotSpotGraalCompiler compiler = (HotSpotGraalCompiler) HotSpotJVMCIRuntime.runtime().getCompiler();
789 compiler.compileTheWorld();
790 }
791 }
|