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

Quick Search    Search Deep

Allocator
Class ObjectLayoutMethods  view ObjectLayoutMethods download ObjectLayoutMethods.java

java.lang.Object
  extended byAllocator.ObjectLayoutMethods

public abstract class ObjectLayoutMethods
extends java.lang.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.2 2003/05/12 10:04:52 joewhaley Exp $

Constructor Summary
ObjectLayoutMethods()
           
 
Method Summary
static int getArrayLength(java.lang.Object obj)
           
static java.lang.Object getVTable(java.lang.Object obj)
           
static java.lang.Object initializeArray(Memory.HeapAddress addr, java.lang.Object vtable, int length, int size)
           
static java.lang.Object initializeObject(Memory.HeapAddress addr, java.lang.Object vtable, int size)
           
static void setArrayLength(java.lang.Object obj, int newLength)
           
static boolean testAndMark(java.lang.Object obj, int markValue)
           
static boolean testMarkBit(java.lang.Object obj, int markValue)
           
static void writeMarkBit(java.lang.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 java.lang.Object initializeObject(Memory.HeapAddress addr,
                                                java.lang.Object vtable,
                                                int size)

initializeArray

public static java.lang.Object initializeArray(Memory.HeapAddress addr,
                                               java.lang.Object vtable,
                                               int length,
                                               int size)

getArrayLength

public static int getArrayLength(java.lang.Object obj)

setArrayLength

public static void setArrayLength(java.lang.Object obj,
                                  int newLength)

getVTable

public static java.lang.Object getVTable(java.lang.Object obj)

testAndMark

public static boolean testAndMark(java.lang.Object obj,
                                  int markValue)

testMarkBit

public static boolean testMarkBit(java.lang.Object obj,
                                  int markValue)

writeMarkBit

public static void writeMarkBit(java.lang.Object obj,
                                int markValue)