class MethodSummary extends Object
| Modifier and Type | Field and Description |
|---|---|
private long |
escapeInfo
Escape result.
|
private static long |
EVERYTHING_ESCAPES |
private boolean |
inProgress
Is this method currently being analyzed?
|
private static int |
MAXIMUM_PARAMETER_INDEX
Long is 64 bits, but we need to reserve a bit for the result
and we start counting at zero.
|
private static long |
RESULT_ESCAPES |
| Constructor and Description |
|---|
MethodSummary(RVMMethod m) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
inProgress() |
boolean |
parameterMayEscapeThread(int p)
Query whether a parameter may escape from a thread.
|
boolean |
resultMayEscapeThread()
Query whether the result of this method may escape from a thread.
|
void |
setInProgress(boolean b) |
void |
setParameterMayEscapeThread(int p,
boolean b)
Record that a parameter may or may not escape from a thread.
|
void |
setResultMayEscapeThread(boolean b)
Record that a result of this method may or may not escape from a thread.
|
private static final int MAXIMUM_PARAMETER_INDEX
private boolean inProgress
private static final long RESULT_ESCAPES
private static final long EVERYTHING_ESCAPES
private long escapeInfo
MethodSummary(RVMMethod m)
m - RVMMethod representing this method.public void setParameterMayEscapeThread(int p, boolean b)
p - the number of the parameterb - may it escape?public boolean parameterMayEscapeThread(int p)
p - the number of the parameterfalse iff the parameter cannot escape from the
thread, true otherwise.public void setResultMayEscapeThread(boolean b)
b - may it escape?public boolean resultMayEscapeThread()
false iff the parameter cannot escape from the
thread, true otherwise.public boolean inProgress()
public void setInProgress(boolean b)