joeq.Allocator
Class ObjectLayoutMethods
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectLayoutMethods
public ObjectLayoutMethods()
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.