public final class ScanStatics extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
chunkSizeMask
Mask used when calculating the chunkSize to ensure chunks are
64bit aligned on 64bit architectures
|
private static int |
refSlotSize
Size in 32bits words of a JTOC slot (ie 32bit addresses = 1,
64bit addresses =2)
|
Constructor and Description |
---|
ScanStatics() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkReference(Address refaddr,
int slot)
Check that a reference encountered during scanning is valid.
|
static void |
scanStatics(TraceLocal trace)
Scan static variables (JTOC) for object references.
|
private static final int refSlotSize
private static final int chunkSizeMask
public ScanStatics()
public static void scanStatics(TraceLocal trace)
trace
- the trace to use for scanningprivate static void checkReference(Address refaddr, int slot)
refaddr
- The address of the reference in question.slot
- the index of the slot. This is necessary to trace
where the reference came from in case it turns out to be invalid.