public class OnStackReplacementPlan extends Object
It has the suspended thread whose activation being replaced, and a compilation plan.
The execution of this plan compiles the method, installs the new code, and reschedule the thread.
Modifier and Type | Field and Description |
---|---|
private int |
CMID |
private CompilationPlan |
compPlan |
private byte |
status
Status is write-only at the moment, but I suspect it comes in
handy for debugging -- RJG
|
private RVMThread |
suspendedThread |
private int |
timeCompleted |
private int |
timeInitiated |
private Offset |
tsFromFPoff |
private Offset |
ypTakenFPoff |
Constructor and Description |
---|
OnStackReplacementPlan(RVMThread thread,
CompilationPlan cp,
int cmid,
int source,
Offset tsoff,
Offset ypoff,
double priority) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
int |
getTimeCompleted() |
int |
getTimeInitiated() |
void |
setStatus(byte newStatus) |
void |
setTimeCompleted(int t) |
void |
setTimeInitiated(int t) |
private final int CMID
private final Offset tsFromFPoff
private final Offset ypTakenFPoff
private byte status
private final RVMThread suspendedThread
private final CompilationPlan compPlan
private int timeInitiated
private int timeCompleted
public OnStackReplacementPlan(RVMThread thread, CompilationPlan cp, int cmid, int source, Offset tsoff, Offset ypoff, double priority)
public int getTimeInitiated()
public void setTimeInitiated(int t)
public int getTimeCompleted()
public void setTimeCompleted(int t)
public void setStatus(byte newStatus)
public void execute()