Package qilin.pta.toolkits.bean
Class ContextSelector
java.lang.Object
qilin.pta.toolkits.bean.ContextSelector
- Direct Known Subclasses:
RepresentativeContextSelector
Compute the contexts of each heap object via OAG.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<Pair<ContextElements,
AllocNode>, Set<Pair<ContextElements, AllocNode>>> protected Map<AllocNode,
Set<ContextElements>> protected int
-
Constructor Summary
ModifierConstructorDescriptionprotected
ContextSelector
(OAG oag) protected
ContextSelector
(OAG oag, int depth) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAllocation
(ContextElements ctx, AllocNode heap, ContextElements newCtx, AllocNode succ) allocatedBy
(ContextElements ctx, AllocNode heap) contextsOf
(AllocNode heap) protected abstract void
selectContext
(OAG oag)
-
Field Details
-
depth
protected int depth -
contextMap
-
allocation
-
-
Constructor Details
-
ContextSelector
-
ContextSelector
-
-
Method Details
-
contextsOf
-
allocatedBy
-
selectContext
-
addAllocation
protected void addAllocation(ContextElements ctx, AllocNode heap, ContextElements newCtx, AllocNode succ)
-