Are java.lang.Compiler(enable/disable) supported?

Vladimir Kozlov vladimir.kozlov at
Mon Feb 17 10:23:00 PST 2014

Hi Sergey,

I think you can safely remove that code in getDefulatToolkit(). It was used before we switched to Hotspot JVM. Non of 
that functionality is supported now:

// java.lang.Compiler ////////////////////////////////////////////////////

// The initial cuts of the HotSpot VM will not support JITs, and all existing
// JITs would need extensive changes to work with HotSpot.  The JIT-related JVM
// functions are all silently ignored unless JVM warnings are printed.

JVM_LEAF(void, JVM_DisableCompiler(JNIEnv *env, jclass compCls))
   if (PrintJVMWarnings) warning("JVM_DisableCompiler not supported");


On 2/17/14 8:59 AM, Sergey Bylokhov wrote:
> Hello,
> I am working on the fix for JDK-6744401 and I have a question about java.lang.Compiler enable/disable. Are these methods
> supported now?
> I checked it by using "-XX: + PrintCompilation" and didn't note any difference, so their usage can be dropped without
> problems?

More information about the hotspot-compiler-dev mailing list