Module openj9.dtfj

Class JavaReference

  • All Implemented Interfaces:
    JavaReference

    public class JavaReference
    extends Object
    implements JavaReference
    JavaReference is intended to represent either a standard reference within a java heap, for example a reference from one object to another, or a root. A root is a reference that is held outside of the heap, in the Java stack or within the JVM itself.
    • Constructor Detail

      • JavaReference

        public JavaReference​(JavaRuntime javaVM,
                             Object source,
                             long address,
                             String description,
                             int referencetype,
                             int roottype,
                             int reachability)
        Constructor
        Parameters:
        javaVM - JavaRuntime
        source - Object The source of this reference/root, for example the JVM or an object on the heap
        address - long Address of the target object of this reference/root.
        description - String
        referencetype - int Mutually exclusive with respect to roottype.
        roottype - int Mutually exclusive with respect to referencetype.
        reachability - int the strength of the reference (this helps the GC in selection of objects for collection).
      • JavaReference

        public JavaReference​(JavaRuntime javaVM,
                             Object source,
                             Object target,
                             String description,
                             int referencetype,
                             int roottype,
                             int reachability)
        Constructor
        Parameters:
        javaVM - JavaRuntime
        source - Object The source of this reference/root, for example the JVM or an object on the heap
        target - Object The target object of this reference/root.
        description - String
        referencetype - int Mutually exclusive with respect to roottype.
        roottype - int Mutually exclusive with respect to referencetype.
        reachability - int The strength of the reference (this helps the GC in selection of objects for collection).