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

Quick Search    Search Deep

Memory.Manager
Class ScanStack  view ScanStack download ScanStack.java

java.lang.Object
  extended byMemory.Manager.ScanStack

public class ScanStack
extends java.lang.Object

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

Field Summary
(package private) static boolean DUMP_STACK_FRAMES
           
(package private) static boolean DUMP_STACK_REFS
           
(package private) static int stackDumpCount
           
(package private) static boolean TRACE_STACKS
           
(package private) static boolean VALIDATE_STACK_REFS
           
 
Constructor Summary
ScanStack()
           
 
Method Summary
static void processRoots()
           
static void scanThreadStack(Scheduler.jq_Thread t, Memory.Address top_frame, boolean relocate_code)
          Scans a threads stack during collection to find object references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATE_STACK_REFS

static final boolean VALIDATE_STACK_REFS
See Also:
Constant Field Values

DUMP_STACK_FRAMES

static final boolean DUMP_STACK_FRAMES
See Also:
Constant Field Values

DUMP_STACK_REFS

static final boolean DUMP_STACK_REFS
See Also:
Constant Field Values

TRACE_STACKS

static final boolean TRACE_STACKS
See Also:
Constant Field Values

stackDumpCount

static int stackDumpCount
Constructor Detail

ScanStack

public ScanStack()
Method Detail

scanThreadStack

public static void scanThreadStack(Scheduler.jq_Thread t,
                                   Memory.Address top_frame,
                                   boolean relocate_code)
Scans a threads stack during collection to find object references. Locates and updates references in stack frames using stack maps, and references associated with JNI native frames. Located references are processed by calling VM_Allocator.processPtrField.

If relocate_code is true, moves code objects, and updates saved link registers in the stack frames.


processRoots

public static void processRoots()