Interface GCRootInfo.Type

Enclosing class:
GCRootInfo

public static interface GCRootInfo.Type
Reasons why an heap object is a garbage collection root.
No Implement:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Everything you have called wait() or notify() on or you have synchronized on
    static final int
    An object which is a queue awaiting its finalizer to be run
    static final int
    Local variable, i.e.
    static final int
    A Java stack frame containing references to Java locals
    static final int
    Local variable in native code
    static final int
    In or out parameters in native code; frequently seen as some methods have native parts and the objects handled as method parameters become GC roots, e.g.
    static final int
    Global variable in native code
    static final int
    Class loaded by system class loader, e.g.
    static final int
    Started but not stopped threads
    static final int
    Running or blocked Java threads
    static final int
    An object which has a finalize method, but has not been finalized and is not yet on the finalizer queue
    static final int
    GC root of unknown type, or a type not matching any of the other declared types
    static final int
    An object which is unreachable from any other root, but has been marked as a root by MAT to retain objects which otherwise would not be included in the analysis
  • Field Details

    • UNKNOWN

      static final int UNKNOWN
      GC root of unknown type, or a type not matching any of the other declared types
      See Also:
    • SYSTEM_CLASS

      static final int SYSTEM_CLASS
      Class loaded by system class loader, e.g. java.lang.String
      See Also:
    • NATIVE_LOCAL

      static final int NATIVE_LOCAL
      Local variable in native code
      See Also:
    • NATIVE_STATIC

      static final int NATIVE_STATIC
      Global variable in native code
      See Also:
    • THREAD_BLOCK

      static final int THREAD_BLOCK
      Started but not stopped threads
      See Also:
    • BUSY_MONITOR

      static final int BUSY_MONITOR
      Everything you have called wait() or notify() on or you have synchronized on
      See Also:
    • JAVA_LOCAL

      static final int JAVA_LOCAL
      Local variable, i.e. method input parameters or locally created objects of methods still on the stack of a thread
      See Also:
    • NATIVE_STACK

      static final int NATIVE_STACK
      In or out parameters in native code; frequently seen as some methods have native parts and the objects handled as method parameters become GC roots, e.g. parameters used for file/network I/O methods or reflection
      See Also:
    • THREAD_OBJ

      static final int THREAD_OBJ
      Running or blocked Java threads
      See Also:
    • FINALIZABLE

      static final int FINALIZABLE
      An object which is a queue awaiting its finalizer to be run
      See Also:
    • UNFINALIZED

      static final int UNFINALIZED
      An object which has a finalize method, but has not been finalized and is not yet on the finalizer queue
      See Also:
    • UNREACHABLE

      static final int UNREACHABLE
      An object which is unreachable from any other root, but has been marked as a root by MAT to retain objects which otherwise would not be included in the analysis
      Since:
      1.0
      See Also:
    • JAVA_STACK_FRAME

      static final int JAVA_STACK_FRAME
      A Java stack frame containing references to Java locals
      Since:
      1.0
      See Also: