user1203021
user1203021

Reputation: 55

Java Hotspot command line parameter to increase the maximum size of Java method

Is there a command line parameter to increase the maximum size of Java method (from 8000 bytecodes) that Hotspot will compile?

Upvotes: 1

Views: 443

Answers (1)

Peter Svensson
Peter Svensson

Reputation: 6173

You might have to download the sources and build with debug flags for this (I'm not sure).

java -XX:+UnlockDiagnosticVMOptions -XX:-DontCompileHugeMethods

More information can be found here.

If you download the sources I think most of the (hundreds) flags can be found.. hotspot/src/share/vm/runtime/arguments.cpp

hotspot/src/share/vm/runtime/globals.cpp

Upvotes: 2

Related Questions