GcRoot

sealed class GcRoot

A GcRoot as identified by HprofRecord.HeapDumpRecord.GcRootRecord in the heap dump.

Types

Debugger
Link copied to clipboard
class Debugger(id: Long) : GcRoot

An object held by a connected debugger

Finalizing
Link copied to clipboard
class Finalizing(id: Long) : GcRoot

An object that is in a queue, waiting for a finalizer to run.

InternedString
Link copied to clipboard
class InternedString(id: Long) : GcRoot

An interned string, see java.lang.String.intern.

JavaFrame
Link copied to clipboard
class JavaFrame(id: Long, threadSerialNumber: Int, frameNumber: Int) : GcRoot

A java local variable

JniGlobal
Link copied to clipboard
class JniGlobal(id: Long, jniGlobalRefId: Long) : GcRoot

A global variable in native code.

JniLocal
Link copied to clipboard
class JniLocal(id: Long, threadSerialNumber: Int, frameNumber: Int) : GcRoot

A local variable in native code.

JniMonitor
Link copied to clipboard
class JniMonitor(id: Long, stackTraceSerialNumber: Int, stackDepth: Int) : GcRoot

It's unclear what this is, documentation welcome.

MonitorUsed
Link copied to clipboard
class MonitorUsed(id: Long) : GcRoot

Everything that called the wait() or notify() methods, or that is synchronized.

NativeStack
Link copied to clipboard
class NativeStack(id: Long, threadSerialNumber: Int) : GcRoot

Input or output parameters in native code

ReferenceCleanup
Link copied to clipboard
class ReferenceCleanup(id: Long) : GcRoot

It's unclear what this is, documentation welcome.

StickyClass
Link copied to clipboard
class StickyClass(id: Long) : GcRoot

A system class

ThreadBlock
Link copied to clipboard
class ThreadBlock(id: Long, threadSerialNumber: Int) : GcRoot
ThreadObject
Link copied to clipboard
class ThreadObject(id: Long, threadSerialNumber: Int, stackTraceSerialNumber: Int) : GcRoot

A thread.

Unknown
Link copied to clipboard
class Unknown(id: Long) : GcRoot

An unknown gc root.

Unreachable
Link copied to clipboard
class Unreachable(id: Long) : GcRoot

An object that is unreachable from any other root, but not a root itself.

VmInternal
Link copied to clipboard
class VmInternal(id: Long) : GcRoot

It's unclear what this is, documentation welcome.

Properties

id
Link copied to clipboard
abstract val id: Long

The object id of the object that this gc root references.

Inheritors

Unknown
Link copied to clipboard
JniGlobal
Link copied to clipboard
JniLocal
Link copied to clipboard
JavaFrame
Link copied to clipboard
NativeStack
Link copied to clipboard
StickyClass
Link copied to clipboard
ThreadBlock
Link copied to clipboard
MonitorUsed
Link copied to clipboard
ThreadObject
Link copied to clipboard
ReferenceCleanup
Link copied to clipboard
VmInternal
Link copied to clipboard
JniMonitor
Link copied to clipboard
InternedString
Link copied to clipboard
Finalizing
Link copied to clipboard
Debugger
Link copied to clipboard
Unreachable
Link copied to clipboard