joeq.Allocator
Class ObjectLayoutMethods

java.lang.Object
  extended by joeq.Allocator.ObjectLayoutMethods

public abstract class ObjectLayoutMethods
extends Object

This interface contains utility functions for the joeq object layout. You can play with these constants to experiment with different object layouts.

Version:
$Id: ObjectLayoutMethods.java,v 1.4 2004/03/09 21:57:34 jwhaley Exp $
Author:
John Whaley

Constructor Summary
ObjectLayoutMethods()
           
 
Method Summary
static int getArrayLength(Object obj)
           
static Object getVTable(Object obj)
           
static Object initializeArray(HeapAddress addr, Object vtable, int length, int size)
           
static Object initializeObject(HeapAddress addr, Object vtable, int size)
           
static void setArrayLength(Object obj, int newLength)
           
static boolean testAndMark(Object obj, int markValue)
           
static boolean testMarkBit(Object obj, int markValue)
           
static void writeMarkBit(Object obj, int markValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectLayoutMethods

public ObjectLayoutMethods()
Method Detail

initializeObject

public static Object initializeObject(HeapAddress addr,
                                      Object vtable,
                                      int size)

initializeArray

public static Object initializeArray(HeapAddress addr,
                                     Object vtable,
                                     int length,
                                     int size)

getArrayLength

public static int getArrayLength(Object obj)

setArrayLength

public static void setArrayLength(Object obj,
                                  int newLength)

getVTable

public static Object getVTable(Object obj)

testAndMark

public static boolean testAndMark(Object obj,
                                  int markValue)

testMarkBit

public static boolean testMarkBit(Object obj,
                                  int markValue)

writeMarkBit

public static void writeMarkBit(Object obj,
                                int markValue)


Copyright © 2001-2005 John Whaley. All Rights Reserved.