org.mmtk.utility.gcspy
Class LinearScan

java.lang.Object
  extended by org.mmtk.utility.alloc.LinearScan
      extended by org.mmtk.utility.gcspy.LinearScan

public class LinearScan
extends LinearScan

This class is only necessary because we cannot implement org.mmtk.utility.alloc.LinearScan as an interface since the invokeinterface bytecode is forbidden in uninterruptible code.


Field Summary
private  AbstractDriver driver
           
 
Constructor Summary
LinearScan(AbstractDriver d)
          Create a new scanner.
 
Method Summary
 void scan(ObjectReference obj)
          Scan an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

private final AbstractDriver driver
Constructor Detail

LinearScan

public LinearScan(AbstractDriver d)
Create a new scanner.

Parameters:
d - The GCspy driver that provides the callback.
Method Detail

scan

public void scan(ObjectReference obj)
Scan an object. The object reference is passed to the scan method of the GCspy driver registered with this scanner.

Specified by:
scan in class LinearScan
Parameters:
obj - The object to scan.