Class J9ObjectHelper

java.lang.Object
com.ibm.j9ddr.vm29.pointer.helper.J9ObjectHelper
Direct Known Subclasses:
J9IndexableObjectHelper

public class J9ObjectHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
     
    static final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
    clazz(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     
    static U32
    flags(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     
    static boolean
    getBooleanField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns an boolean field from the object or its super classes.
    static byte
    getByteField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns an byte field from the object or its super classes.
    static byte
     
    static char
    getCharField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns a char field from the object or its super classes.
    static String
    getClassName(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
    Return the name of this J9Object's class
    static double
    getDoubleField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns a double field from the object or its super classes.
    getFieldOffset(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, String name, String signature)
     
    static float
    getFloatField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns a float field from the object or its super classes.
    static int
    getIntField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns an int field from the object or its super classes.
    static String
    getJavaName(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     
    static long
    getLongField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns an long field from the object or its super classes.
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    getObjectField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns an Object field from the object or its super classes.
    static short
    getShortField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns a short field from the object or its super classes.
    static String
    getStringField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset)
    Returns a String field from the object or its super classes.
    static long
     
    static boolean
    isIndexable(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
    Returns TRUE if an object is indexable, FALSE otherwise.
    static UDATA
    monitor(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     
    static UDATA
    rawClazz(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     
    static void
     
    static String
    stringValue(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer)
     

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mixedReferenceMode

      public static final boolean mixedReferenceMode
    • compressObjectReferences

      public static final boolean compressObjectReferences
  • Constructor Details

    • J9ObjectHelper

      public J9ObjectHelper()
  • Method Details

    • isIndexable

      public static boolean isIndexable(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Returns TRUE if an object is indexable, FALSE otherwise.
      Parameters:
      objectPtr - Pointer to an object
      Returns:
      TRUE if an object is indexable, FALSE otherwise
      Throws:
      CorruptDataException
    • flags

      public static U32 flags(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • headerSize

      public static long headerSize()
    • rawClazz

      public static UDATA rawClazz(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • clazz

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • monitor

      public static UDATA monitor(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • getClassName

      public static String getClassName(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Return the name of this J9Object's class
      Throws:
      CorruptDataException
    • getJavaName

      public static String getJavaName(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • stringValue

      public static String stringValue(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer) throws CorruptDataException
      Throws:
      CorruptDataException
    • getStringField

      public static String getStringField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns a String field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the String value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getIntField

      public static int getIntField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns an int field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the int value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getShortField

      public static short getShortField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns a short field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the short value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getFloatField

      public static float getFloatField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns a float field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the float value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getDoubleField

      public static double getDoubleField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns a double field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the float value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getCharField

      public static char getCharField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns a char field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the char value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getByteField

      public static byte getByteField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns an byte field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the byte value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getBooleanField

      public static boolean getBooleanField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns an boolean field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the boolean value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getLongField

      public static long getLongField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns an long field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the long value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getObjectField

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getObjectField(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, J9ObjectFieldOffset offset) throws CorruptDataException
      Returns an Object field from the object or its super classes. The field may be a static field or an instance field.
      Parameters:
      offset - the offset of the field to return
      Returns:
      the J9Object value of the field
      Throws:
      CorruptDataException - if there is a problem reading the underlying data from the core file
    • getFieldOffset

      public static J9ObjectFieldOffset getFieldOffset(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer objPointer, String name, String signature) throws CorruptDataException
      Throws:
      CorruptDataException
    • getByteFromArrayByIndex

      public static byte getByteFromArrayByIndex(Object obj, int index)
    • reportClassCacheStats

      public static void reportClassCacheStats()