Package org.jruby.compiler
Class JITCompiler
java.lang.Object
org.jruby.compiler.JITCompiler
- All Implemented Interfaces:
JITCompilerMBean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildThresholdReached(ThreadContext context, Compilable method, boolean force) longlonglonglonglonglonglonglongString[]static StringgetHashForBytes(byte[] bytes) static StringgetHashForString(String str) longlonglongString[]longgetTaskFor(ThreadContext context, Compilable method) booleanReturn the shutdown status of the JIT compiler.voidshutdown()Shut down this JIT compiler and its resources.voidtearDown()
-
Field Details
-
RUBY_JIT_PREFIX
- See Also:
-
-
Constructor Details
-
JITCompiler
-
-
Method Details
-
getSuccessCount
public long getSuccessCount()- Specified by:
getSuccessCountin interfaceJITCompilerMBean
-
getCompileCount
public long getCompileCount()- Specified by:
getCompileCountin interfaceJITCompilerMBean
-
getFailCount
public long getFailCount()- Specified by:
getFailCountin interfaceJITCompilerMBean
-
getCompileTime
public long getCompileTime()- Specified by:
getCompileTimein interfaceJITCompilerMBean
-
getAbandonCount
public long getAbandonCount()- Specified by:
getAbandonCountin interfaceJITCompilerMBean
-
getCodeSize
public long getCodeSize()- Specified by:
getCodeSizein interfaceJITCompilerMBean
-
getCodeAverageSize
public long getCodeAverageSize()- Specified by:
getCodeAverageSizein interfaceJITCompilerMBean
-
getCompileTimeAverage
public long getCompileTimeAverage()- Specified by:
getCompileTimeAveragein interfaceJITCompilerMBean
-
getCodeLargestSize
public long getCodeLargestSize()- Specified by:
getCodeLargestSizein interfaceJITCompilerMBean
-
getIRSize
public long getIRSize()- Specified by:
getIRSizein interfaceJITCompilerMBean
-
getIRAverageSize
public long getIRAverageSize()- Specified by:
getIRAverageSizein interfaceJITCompilerMBean
-
getIRLargestSize
public long getIRLargestSize()- Specified by:
getIRLargestSizein interfaceJITCompilerMBean
-
getFrameAwareMethods
- Specified by:
getFrameAwareMethodsin interfaceJITCompilerMBean
-
getScopeAwareMethods
- Specified by:
getScopeAwareMethodsin interfaceJITCompilerMBean
-
tearDown
public void tearDown() -
shutdown
public void shutdown()Shut down this JIT compiler and its resources. No more JIT jobs will be submitted for optimization. -
isShutdown
public boolean isShutdown()Return the shutdown status of the JIT compiler.- Returns:
- true if already shut down, false otherwise
-
getTaskFor
-
buildThresholdReached
-
getHashForString
-
getHashForBytes
-