public static class MonitorSnippets.Templates extends SnippetTemplate.AbstractTemplates
Modifier and Type | Field and Description |
---|---|
private SnippetTemplate.SnippetInfo |
checkCounter |
private SnippetTemplate.SnippetInfo |
initCounter |
private SnippetTemplate.SnippetInfo |
monitorenter |
private SnippetTemplate.SnippetInfo |
monitorenterStub |
private SnippetTemplate.SnippetInfo |
monitorexit |
private SnippetTemplate.SnippetInfo |
monitorexitStub |
private boolean |
useFastLocking |
providers, snippetReflection, target
Constructor and Description |
---|
Templates(HotSpotProviders providers,
TargetDescription target,
boolean useFastLocking) |
Modifier and Type | Method and Description |
---|---|
private void |
checkBalancedMonitors(StructuredGraph graph,
LoweringTool tool)
If balanced monitor checking is enabled then nodes are inserted at the start and all
return points of the graph to initialize and check the monitor counter respectively.
|
(package private) static boolean |
isTracingEnabledForMethod(ResolvedJavaMethod method) |
(package private) static boolean |
isTracingEnabledForType(ValueNode object) |
void |
lower(MonitorExitNode monitorexitNode,
LoweringTool tool) |
void |
lower(RawMonitorEnterNode monitorenterNode,
HotSpotRegistersProvider registers,
LoweringTool tool) |
findMethod, snippet, template
private final SnippetTemplate.SnippetInfo monitorenter
private final SnippetTemplate.SnippetInfo monitorexit
private final SnippetTemplate.SnippetInfo monitorenterStub
private final SnippetTemplate.SnippetInfo monitorexitStub
private final SnippetTemplate.SnippetInfo initCounter
private final SnippetTemplate.SnippetInfo checkCounter
private final boolean useFastLocking
public Templates(HotSpotProviders providers, TargetDescription target, boolean useFastLocking)
public void lower(RawMonitorEnterNode monitorenterNode, HotSpotRegistersProvider registers, LoweringTool tool)
public void lower(MonitorExitNode monitorexitNode, LoweringTool tool)
static boolean isTracingEnabledForType(ValueNode object)
static boolean isTracingEnabledForMethod(ResolvedJavaMethod method)
private void checkBalancedMonitors(StructuredGraph graph, LoweringTool tool)