# HG changeset patch # User Doug Simon # Date 1408023320 -7200 # Node ID 217eee2ddead7ed6b97ae3dbab20fb9fd799eff3 # Parent c3c07046a74b3de40596ac97b3594da0e9c91728 support use of -XX:CompileCommand=dontinline to exclude problematic methods from CompileTheWorld diff -r c3c07046a74b -r 217eee2ddead graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Thu Aug 14 15:02:17 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Thu Aug 14 15:35:20 2014 +0200 @@ -378,6 +378,10 @@ if (c.dontCompileHugeMethods && javaMethod.getCodeSize() > c.hugeMethodLimit) { return false; } + // Allow use of -XX:CompileCommand=dontinline to exclude problematic methods + if (!javaMethod.canBeInlined()) { + return false; + } // Skip @Snippets for now if (javaMethod.getAnnotation(Snippet.class) != null) { return false;