- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.ConstantPoolHelpers
-
public class ConstantPoolHelpers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UDATAPointer
J9_AFTER_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
J9_CLASS_FROM_CP(com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer cp)
use J9ConstantPoolPointer.ramClass() instead?static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
J9_CLASS_FROM_METHOD(com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer method)
static com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer
J9_CP_FROM_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
use J9ClassPointer.ramConstantPool() instead?static com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer
J9_CP_FROM_METHOD(com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer method)
static long
J9_CP_TYPE(U32Pointer cpShapeDescription, int index)
This method is Java implementation of the define J9_CP_TYPE in j9cp.h in VM.static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
J9_CURRENT_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
J9_IS_CLASS_OBSOLETE(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static com.ibm.j9ddr.vm29.pointer.generated.J9ROMConstantPoolItemPointer
J9_ROM_CP_FROM_CP(com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer cp)
use J9ConstantPoolPointer.romConstantPool() instead?static com.ibm.j9ddr.vm29.pointer.generated.J9ROMConstantPoolItemPointer
J9_ROM_CP_FROM_ROM_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ROMClassPointer romClass)
use J9ROMClassPointer.romConstantPool() instead?static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
J9VM_J9CLASS_FROM_HEAPCLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer clazzObject)
static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
J9VM_J9CLASS_TO_HEAPCLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
-
-
Method Detail
-
J9_AFTER_CLASS
public static UDATAPointer J9_AFTER_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
J9_CP_FROM_METHOD
public static com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer J9_CP_FROM_METHOD(com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer method) throws CorruptDataException
- Throws:
CorruptDataException
-
J9_CP_FROM_CLASS
public static com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer J9_CP_FROM_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
use J9ClassPointer.ramConstantPool() instead?- Throws:
CorruptDataException
-
J9_CLASS_FROM_CP
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer J9_CLASS_FROM_CP(com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer cp) throws CorruptDataException
use J9ConstantPoolPointer.ramClass() instead?- Throws:
CorruptDataException
-
J9_CLASS_FROM_METHOD
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer J9_CLASS_FROM_METHOD(com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer method) throws CorruptDataException
- Throws:
CorruptDataException
-
J9_ROM_CP_FROM_CP
public static com.ibm.j9ddr.vm29.pointer.generated.J9ROMConstantPoolItemPointer J9_ROM_CP_FROM_CP(com.ibm.j9ddr.vm29.pointer.generated.J9ConstantPoolPointer cp) throws CorruptDataException
use J9ConstantPoolPointer.romConstantPool() instead?- Throws:
CorruptDataException
-
J9_ROM_CP_FROM_ROM_CLASS
public static com.ibm.j9ddr.vm29.pointer.generated.J9ROMConstantPoolItemPointer J9_ROM_CP_FROM_ROM_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ROMClassPointer romClass) throws CorruptDataException
use J9ROMClassPointer.romConstantPool() instead?- Throws:
CorruptDataException
-
J9_IS_CLASS_OBSOLETE
public static boolean J9_IS_CLASS_OBSOLETE(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
J9_CURRENT_CLASS
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer J9_CURRENT_CLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
J9VM_J9CLASS_FROM_HEAPCLASS
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer J9VM_J9CLASS_FROM_HEAPCLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer clazzObject) throws CorruptDataException
- Throws:
CorruptDataException
-
J9VM_J9CLASS_TO_HEAPCLASS
public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer J9VM_J9CLASS_TO_HEAPCLASS(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
J9_CP_TYPE
public static long J9_CP_TYPE(U32Pointer cpShapeDescription, int index) throws CorruptDataException
This method is Java implementation of the define J9_CP_TYPE in j9cp.h in VM. It basically find out the type of the constant pool entry at the given index. #define J9_CP_TYPE(cpShapeDescription, index) \ (((cpShapeDescription)[(index) / J9_CP_DESCRIPTIONS_PER_U32] >> \ (((index) % J9_CP_DESCRIPTIONS_PER_U32) * J9_CP_BITS_PER_DESCRIPTION)) & J9_CP_DESCRIPTION_MASK)- Parameters:
cpShapeDescription
- Description of the constantPoolindex
- Type index- Returns:
- Type
- Throws:
CorruptDataException
-
-