|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.escape.UnsyncReplacer
final class UnsyncReplacer
Replace calls to synchronized methods to calls specialized to be unsynchronized.
Field Summary | |
---|---|
private static InvokeeThreadLocalContext |
context
Singleton: a single context representing "specialize this method when the invokee of this method is thread-local" |
private OptOptions |
options
Controlling compiler options |
private Register |
reg
The register to replace |
Constructor Summary | |
---|---|
private |
UnsyncReplacer(Register r,
OptOptions options)
|
Method Summary | |
---|---|
static UnsyncReplacer |
getReplacer(Instruction inst,
IR ir)
Generate an instance of this class for a particular instantiation site. |
void |
transform()
Perform the transformation |
private void |
transform(RegisterOperand rop)
Perform the transformation for a given register appearance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Register reg
private final OptOptions options
private static final InvokeeThreadLocalContext context
Constructor Detail |
---|
private UnsyncReplacer(Register r, OptOptions options)
r
- the register operand target of the allocationoptions
- controlling compiler optionsMethod Detail |
---|
public static UnsyncReplacer getReplacer(Instruction inst, IR ir)
inst
- the allocation siteir
- governing ir
public void transform()
private void transform(RegisterOperand rop)
rop
- The def or use to check
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |