|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.instrumentors.AssignThreadIDStrategy
public class AssignThreadIDStrategy
Instrumentation strategy that adds code to java.lang.Thread to maintain a unique thread ID and an "old thread" flag. NOTE: This instrumentor has to be run AFTER the CompactSynchronizedDebugStrategy, otherwise the MONITORENTER and MONITOREXIT instructions will generate multiple sync points.
| Constructor Summary | |
|---|---|
AssignThreadIDStrategy()
|
|
| Method Summary | |
|---|---|
void |
done()
Instrumentation of all classes is done. |
void |
instrument(ClassFile cf)
Instrument the class. |
protected void |
processCtor(ClassFile cf,
MethodInfo mi,
int threadID,
int nextThreadID,
int oldThread)
Process this constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssignThreadIDStrategy()
| Method Detail |
|---|
public void instrument(ClassFile cf)
instrument in interface IInstrumentationStrategycf - class file info
protected void processCtor(ClassFile cf,
MethodInfo mi,
int threadID,
int nextThreadID,
int oldThread)
cf - class file infomi - method infothreadID - index of the threadID fieldnextThreadID - index of the nextThreadID fieldoldThread - index of the oldThread fieldpublic void done()
done in interface IInstrumentationStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||