|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.MarkSet
com.ibm.dtfj.analyzer.util.ObjectMarkSet
public class ObjectMarkSet
A MarkSet which operates on JavaObject items. The semantics are the same as for MarkSet but in addition we handle the concept of a mimimum allocation size (or grain). This can give greater compression of the resulting bit sets and thus lead to lower memory requirements.
Field Summary |
---|
Fields inherited from class com.ibm.dtfj.analyzer.util.MarkSet |
---|
DEFAULT_MAX, DEFAULT_PAGE, DEFAULT_TOP |
Constructor Summary | |
---|---|
ObjectMarkSet(int grain,
long max)
Build a mark set with the granularity and maximum size given. |
|
ObjectMarkSet(ObjectMarkSet copy)
Build a mark set as a copy of another one |
Method Summary | |
---|---|
ObjectMarkSet |
and(ObjectMarkSet other)
And this set with another given set and return the result. |
void |
clearMark(com.ibm.dtfj.java.JavaObject obj)
Unmark the given object |
void |
clearMark(long id)
Unmark the given object id |
boolean |
isMarked(com.ibm.dtfj.java.JavaObject obj)
Is there a mark set for the given object ? |
boolean |
isMarked(long id)
Is there a mark set for the given object id ? |
ObjectMarkSet |
or(ObjectMarkSet other)
Or this set with another given set and return the result. |
void |
setMark(com.ibm.dtfj.java.JavaObject obj)
Mark the given object |
void |
setMark(long id)
Mark the given object id |
ObjectMarkSet |
xor(ObjectMarkSet other)
Exclusive or this set with another given set and return the result. |
Methods inherited from class com.ibm.dtfj.analyzer.util.MarkSet |
---|
and, clear, computeAnd, computeOr, computeXor, countMarks, getMaxID, or, xor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectMarkSet(int grain, long max)
grain
- the granularity of heap allocationsmax
- the maximum size of an object idpublic ObjectMarkSet(ObjectMarkSet copy)
copy
- the set to copyMethod Detail |
---|
public void setMark(com.ibm.dtfj.java.JavaObject obj)
obj
- the object to markpublic void setMark(long id)
setMark
in class MarkSet
id
- the object idpublic void clearMark(com.ibm.dtfj.java.JavaObject obj)
obj
- the object to unmarkpublic void clearMark(long id)
clearMark
in class MarkSet
id
- the object idpublic boolean isMarked(com.ibm.dtfj.java.JavaObject obj)
obj
- the object to test
public boolean isMarked(long id)
isMarked
in class MarkSet
id
- the object id
public ObjectMarkSet and(ObjectMarkSet other)
other
- the set to and this one with
public ObjectMarkSet or(ObjectMarkSet other)
other
- the set to or this one with
public ObjectMarkSet xor(ObjectMarkSet other)
other
- the set to or this one with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |