public class Threads
extends java.lang.Object
Constructor and Description |
---|
Threads() |
Modifier and Type | Method and Description |
---|---|
JavaThread |
createJavaThreadWrapper(Address threadAddr)
Routine for instantiating appropriately-typed wrapper for a
JavaThread.
|
JavaThread |
first()
NOTE: this returns objects of type JavaThread, CompilerThread,
JvmtiAgentThread, and ServiceThread.
|
int |
getNumberOfThreads() |
java.util.List |
getPendingThreads(ObjectMonitor monitor) |
java.util.List |
getWaitingThreads(ObjectMonitor monitor) |
void |
oopsDo(AddressVisitor oopVisitor)
Memory operations
|
JavaThread |
owningThreadFromMonitor(Address o) |
JavaThread |
owningThreadFromMonitor(ObjectMonitor monitor) |
public JavaThread first()
JavaThread.isJavaThread()
has been
changed from the definition in the VM (which returns true for
all of these thread types) to return true for JavaThreads and
false for the three subclasses. FIXME: should reconsider the
inheritance hierarchy; see JavaThread.isJavaThread()
.public int getNumberOfThreads()
public JavaThread createJavaThreadWrapper(Address threadAddr)
public void oopsDo(AddressVisitor oopVisitor)
public JavaThread owningThreadFromMonitor(Address o)
public JavaThread owningThreadFromMonitor(ObjectMonitor monitor)
public java.util.List getPendingThreads(ObjectMonitor monitor)
public java.util.List getWaitingThreads(ObjectMonitor monitor)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.