class FI_EscapeSummary extends Object
Modifier and Type | Field and Description |
---|---|
private HashMap<Register,Object> |
hash
A mapping that holds the analysis result for thread-locality for each
Register.
|
private HashMap<Register,Object> |
hash2
A mapping that holds the analysis result for method-locality for each
Register.
|
(package private) static Object |
MAY_ESCAPE_METHOD
Static object used to represent analysis result
|
(package private) static Object |
MAY_ESCAPE_THREAD
Static object used to represent analysis result
|
(package private) static Object |
METHOD_LOCAL
Static object used to represent analysis result
|
(package private) static Object |
THREAD_LOCAL
Static object used to represent analysis result
|
Constructor and Description |
---|
FI_EscapeSummary() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
isMethodLocal(Register r) |
(package private) boolean |
isThreadLocal(Register r) |
(package private) void |
setMethodLocal(Register r,
boolean b)
Records the fact that ALL object pointed to by a symbolic register
MUST (or may) escape this method.
|
(package private) void |
setThreadLocal(Register r,
boolean b)
Records the fact that ALL object pointed to by a symbolic register
MUST (or may) escape this thread.
|
private final HashMap<Register,Object> hash
private final HashMap<Register,Object> hash2
static final Object THREAD_LOCAL
static final Object MAY_ESCAPE_THREAD
static final Object METHOD_LOCAL
static final Object MAY_ESCAPE_METHOD
FI_EscapeSummary()
boolean isThreadLocal(Register r)
r
- a symbolic registertrue
iff ANY object pointed to by a symbolic register
MUST be thread localboolean isMethodLocal(Register r)
r
- a symbolic registertrue
iff ANY object pointed to by a symbolic register
MUST be method localvoid setThreadLocal(Register r, boolean b)
r
- a symbolic registerb
- true
if thread-local, false
otherwisevoid setMethodLocal(Register r, boolean b)
r
- a symbolic registerb
- true
if method-local, false
otherwise