java.lang.Object
Memory.Manager.GCUtil
- public class GCUtil
- extends java.lang.Object
- Version:
- $Id: GCUtil.java,v 1.6 2003/05/12 10:05:19 joewhaley Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE
private static final boolean TRACE
- See Also:
- Constant Field Values
vtableForArrayType
static java.lang.Object vtableForArrayType
vtableForClassType
static java.lang.Object vtableForClassType
vtableForPrimitiveType
static java.lang.Object vtableForPrimitiveType
outOfMemoryLock
private static final java.lang.Object outOfMemoryLock
outOfMemoryReported
private static boolean outOfMemoryReported
GCUtil
public GCUtil()
boot
public static void boot()
refInVM
public static boolean refInVM(Memory.HeapAddress ref)
addrInVM
public static boolean addrInVM(Memory.HeapAddress address)
refInBootImage
public static boolean refInBootImage(Memory.HeapAddress ref)
refInHeap
public static boolean refInHeap(Memory.HeapAddress ref)
addrInBootImage
public static boolean addrInBootImage(Memory.HeapAddress address)
validType
public static boolean validType(Memory.HeapAddress typeAddress)
validObject
public static boolean validObject(java.lang.Object ref)
- check if a ref, its tib pointer & type pointer are all in the heap
validRef
public static boolean validRef(Memory.HeapAddress ref)
dumpRef
public static void dumpRef(Memory.HeapAddress ref)
printclass
public static void printclass(Memory.HeapAddress ref)
dumpProcessorsArray
static void dumpProcessorsArray()
outOfMemory
public static void outOfMemory(java.lang.String heapName,
int heapSize,
java.lang.String commandLine)
- Print OutOfMemoryError message and exit.
TODO: make it possible to throw an exception, but this will have
to be done without doing further allocations (or by using temp space)