will hotspot refuse to compile huge functions

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed May 22 23:32:31 PDT 2013


Use -XX:+PrintCompilation to see if it is really not compiled as you think.
Then you can try to switch off limit on big method: -XX:-DontCompileHugeMethods.
The compilation may still fail if IR graph become big. You can increase allowed size: -XX:MaxNodeLimit=100000 (default 
is 65000) to avoid that.
Note that Hotspot's JIT compiles only hot methods which are executed (or have hot loop) more than CompileThreshold times 
(default 10000 for Server VM).

Vladimir

On 5/22/13 10:46 PM, Andy Nuss wrote:
> I have a very big function that's hard to refactor, almost 500 lines of sparsely commented code.  Hard to believe, but
> its a complex finite automata.  Will hotspot compile it?


More information about the hotspot-compiler-dev mailing list