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 TypeMethodDescriptionvoid
buildThresholdReached
(ThreadContext context, Compilable method, boolean force) long
long
long
long
long
long
long
long
String[]
static String
getHashForBytes
(byte[] bytes) static String
getHashForString
(String str) long
long
long
String[]
long
getTaskFor
(ThreadContext context, Compilable method) boolean
Return the shutdown status of the JIT compiler.void
shutdown()
Shut down this JIT compiler and its resources.void
tearDown()
-
Field Details
-
RUBY_JIT_PREFIX
- See Also:
-
-
Constructor Details
-
JITCompiler
-
-
Method Details
-
getSuccessCount
public long getSuccessCount()- Specified by:
getSuccessCount
in interfaceJITCompilerMBean
-
getCompileCount
public long getCompileCount()- Specified by:
getCompileCount
in interfaceJITCompilerMBean
-
getFailCount
public long getFailCount()- Specified by:
getFailCount
in interfaceJITCompilerMBean
-
getCompileTime
public long getCompileTime()- Specified by:
getCompileTime
in interfaceJITCompilerMBean
-
getAbandonCount
public long getAbandonCount()- Specified by:
getAbandonCount
in interfaceJITCompilerMBean
-
getCodeSize
public long getCodeSize()- Specified by:
getCodeSize
in interfaceJITCompilerMBean
-
getCodeAverageSize
public long getCodeAverageSize()- Specified by:
getCodeAverageSize
in interfaceJITCompilerMBean
-
getCompileTimeAverage
public long getCompileTimeAverage()- Specified by:
getCompileTimeAverage
in interfaceJITCompilerMBean
-
getCodeLargestSize
public long getCodeLargestSize()- Specified by:
getCodeLargestSize
in interfaceJITCompilerMBean
-
getIRSize
public long getIRSize()- Specified by:
getIRSize
in interfaceJITCompilerMBean
-
getIRAverageSize
public long getIRAverageSize()- Specified by:
getIRAverageSize
in interfaceJITCompilerMBean
-
getIRLargestSize
public long getIRLargestSize()- Specified by:
getIRLargestSize
in interfaceJITCompilerMBean
-
getFrameAwareMethods
- Specified by:
getFrameAwareMethods
in interfaceJITCompilerMBean
-
getScopeAwareMethods
- Specified by:
getScopeAwareMethods
in 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
-