Module openj9.dtfj

Class DTFJJavaReference

  • All Implemented Interfaces:
    JavaReference

    public class DTFJJavaReference
    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

      • DTFJJavaReference

        public DTFJJavaReference​(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).