Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Memory.Manager
Class GCUtil  view GCUtil download GCUtil.java

java.lang.Object
  extended byMemory.Manager.GCUtil

public class GCUtil
extends java.lang.Object

Version:
$Id: GCUtil.java,v 1.6 2003/05/12 10:05:19 joewhaley Exp $

Field Summary
private static java.lang.Object outOfMemoryLock
           
private static boolean outOfMemoryReported
           
private static boolean TRACE
           
(package private) static java.lang.Object vtableForArrayType
           
(package private) static java.lang.Object vtableForClassType
           
(package private) static java.lang.Object vtableForPrimitiveType
           
 
Constructor Summary
GCUtil()
           
 
Method Summary
static boolean addrInBootImage(Memory.HeapAddress address)
           
static boolean addrInVM(Memory.HeapAddress address)
           
static void boot()
           
(package private) static void dumpProcessorsArray()
           
static void dumpRef(Memory.HeapAddress ref)
           
static void outOfMemory(java.lang.String heapName, int heapSize, java.lang.String commandLine)
          Print OutOfMemoryError message and exit.
static void printclass(Memory.HeapAddress ref)
           
static boolean refInBootImage(Memory.HeapAddress ref)
           
static boolean refInHeap(Memory.HeapAddress ref)
           
static boolean refInVM(Memory.HeapAddress ref)
           
static boolean validObject(java.lang.Object ref)
          check if a ref, its tib pointer & type pointer are all in the heap
static boolean validRef(Memory.HeapAddress ref)
           
static boolean validType(Memory.HeapAddress typeAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GCUtil

public GCUtil()
Method Detail

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)