org.mmtk.utility.gcspy
Class GCspy

java.lang.Object
  extended by org.mmtk.utility.gcspy.GCspy

public class GCspy
extends Object

This class implements collector-independent GCspy functionality to start the GCspy server. It handles command-line parameters for port number, whether the VM should wait for a GCspy client to connect, and tile size. Most importantly, it calls the Plan's startGCspyServer method which creates a new ServerInterpreter, and adds events and space drivers.


Field Summary
static ServerInterpreter server
           
static Util util
          Class variables
 
Constructor Summary
GCspy()
           
 
Method Summary
static void createOptions()
          Initialization
static int getGCspyPort()
          Get the number of the port that GCspy communicates on
static boolean getGCspyWait()
          Should the VM wait for GCspy to connect?
static void postBoot()
          The boot method is called by the runtime immediately after command-line arguments are available.
static void startGCspyServer()
          Start the GCspy server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

util

public static final Util util
Class variables


server

public static final ServerInterpreter server
Constructor Detail

GCspy

public GCspy()
Method Detail

createOptions

public static void createOptions()
Initialization


postBoot

public static void postBoot()
The boot method is called by the runtime immediately after command-line arguments are available. Note that allocation must be supported prior to this point because the runtime infrastructure may require allocation in order to parse the command line arguments.


getGCspyPort

public static int getGCspyPort()
Get the number of the port that GCspy communicates on

Returns:
the GCspy port number

getGCspyWait

public static boolean getGCspyWait()
Should the VM wait for GCspy to connect?

Returns:
whether the VM should wait for the visualiser to connect

startGCspyServer

public static void startGCspyServer()
Start the GCspy server. WARNING: allocates memory indirectly