package REGISTRY
This object serves as a registry for (live) objects that the debugger interface may be interested in.
- Alphabetic
- By Inheritance
- REGISTRY
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Debuggable
extends AnyRef
Objects that wish to make themselves known to the debugger interface should incorporate this trait, and
register
themselves at construction time. - type StateKey = Long
Value Members
- val NONEWAITING: Seq[Thread]
-
def
register(obj: Debuggable): StateKey
Register
obj
- val registered: TrieMap[StateKey, WeakReference[Debuggable]]
-
def
showThreads(out: PrintWriter, caption: String, threads: Seq[Thread]): Unit
Utility to print captioned lists of (waiting) threads
-
val
stateKey: AtomicLong
Atomic reference to the key that will be used to enter the next registered object in the registry.
-
def
waiting: TrieMap[Thread, List[Debuggable]]
Return a mapping that maps each thread awaiting a registered object to the object it is awaiting.
Return a mapping that maps each thread awaiting a registered object to the object it is awaiting. This mapping is used to interpret the states of waiting threads during a thread dump.
- To do
When the threadcso components that use
jdk.util.concurrent.LockSupport
are commissioned this will become obsolete.