main

square/leakcanary

Last updated at: 29/12/2023 09:39

GcRootReference.kt

TLDR

This file contains a class called GcRootReference that represents a reference to a garbage collector (GC) root. The class also includes information about its priority and a reference to a matched library leak.

Classes

GcRootReference

The GcRootReference class represents a reference to a garbage collector (GC) root. It has the following properties:

  • gcRoot: Represents the identified GC root.
  • isLowPriority: Indicates whether the reference has low priority.
  • matchedLibraryLeak: Represents the matched library leak if any.
package shark

// TODO Revisit this API. It's more like a GC Root + some priority / tagging.
class GcRootReference(
  val gcRoot: GcRoot,
  val isLowPriority: Boolean,
  val matchedLibraryLeak: LibraryLeakReferenceMatcher?,
)