Types

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

An object held by a connected debugger

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

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

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

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

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

A java local variable

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

A global variable in native code.

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

A local variable in native code.

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

It's unclear what this is, documentation welcome.

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

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

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

Input or output parameters in native code

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

It's unclear what this is, documentation welcome.

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

A system class

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

A thread.

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

An unknown gc root.

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

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

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

It's unclear what this is, documentation welcome.

Properties

Link copied to clipboard
abstract val id: Long

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