Skip to content
🤔 Documentation issue? Report it

//leakcanary/leakcanary/GcTrigger

GcTrigger

fun interface GcTrigger

GcTrigger is used to try triggering garbage collection and enqueuing KeyedWeakReference into the associated java.lang.ref.ReferenceQueue. The default implementation Default comes from AOSP.

Types

Name Summary
Default object Default : GcTrigger
Default implementation of GcTrigger.

Functions

Name Summary
runGc abstract fun runGc()
Attempts to run garbage collection.

Inheritors

Name
Default