| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| private static enum | ThreadSnapshot.
Represents information about a locking operation. |
| private static record | |
| private static class | ThreadSnapshot.
Represents a locking operation of a thread at a specific stack depth. |
| Modifier and Type | Field and Description |
|---|---|
| private ThreadSnapshot. | |
| private Object | |
| private int | |
| private Thread | |
| private static final ThreadSnapshot. | |
| private static final StackTraceElement[] | |
| private static final JavaLangAccess | |
| private ThreadSnapshot. | |
| private String | |
| private Thread | |
| private StackTraceElement[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| pack-priv Thread | |
| private static native ThreadSnapshot | |
| private Object | |
| public static ThreadSnapshot | |
| pack-priv Stream | |
| pack-priv boolean | |
| pack-priv Object | |
| pack-priv Thread | parkBlockerOwner()
Returns the owner of the parkBlocker if the parkBlocker is an AbstractOwnableSynchronizer. |
| pack-priv StackTraceElement[] | |
| pack-priv String | |
| pack-priv Thread. | |
| pack-priv Object |
| blocker | back to summary |
|---|---|
| private ThreadSnapshot. | |
| blockerObject | back to summary |
|---|---|
| private Object blockerObject | |
| blockerTypeOrdinal | back to summary |
|---|---|
| private int blockerTypeOrdinal | |
| carrierThread | back to summary |
|---|---|
| private Thread carrierThread | |
| EMPTY_LOCKS | back to summary |
|---|---|
| private static final ThreadSnapshot. | |
| EMPTY_STACK | back to summary |
|---|---|
| private static final StackTraceElement[] EMPTY_STACK | |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| locks | back to summary |
|---|---|
| private ThreadSnapshot. | |
| name | back to summary |
|---|---|
| private String name | |
| parkBlockerOwner | back to summary |
|---|---|
| private Thread parkBlockerOwner | |
| stackTrace | back to summary |
|---|---|
| private StackTraceElement[] stackTrace | |
| threadStatus | back to summary |
|---|---|
| private int threadStatus | |
| ThreadSnapshot | back to summary |
|---|---|
| private ThreadSnapshot() | |
| blockedOn | back to summary |
|---|---|
| pack-priv Object blockedOn() Returns the object that the thread is blocked on.
| |
| carrierThread | back to summary |
|---|---|
| pack-priv Thread carrierThread() If the thread is a mounted virtual thread then return its carrier. | |
| create | back to summary |
|---|---|
| private static native ThreadSnapshot create(Thread thread) | |
| getBlocker | back to summary |
|---|---|
| private Object getBlocker(ThreadSnapshot. | |
| of | back to summary |
|---|---|
| public static ThreadSnapshot of(Thread thread) Take a snapshot of a Thread to get all information about the thread.
| |
| ownedMonitorsAt | back to summary |
|---|---|
| pack-priv Stream Returns the objects that the thread locked at the given depth. The stream will contain a null element for a monitor that has been eliminated. | |
| ownsMonitors | back to summary |
|---|---|
| pack-priv boolean ownsMonitors() Returns true if the thread owns any object monitors. | |
| parkBlocker | back to summary |
|---|---|
| pack-priv Object parkBlocker() Returns the thread's parkBlocker. | |
| parkBlockerOwner | back to summary |
|---|---|
| pack-priv Thread parkBlockerOwner() Returns the owner of the parkBlocker if the parkBlocker is an AbstractOwnableSynchronizer. | |
| stackTrace | back to summary |
|---|---|
| pack-priv StackTraceElement[] stackTrace() Returns the thread stack trace. | |
| threadName | back to summary |
|---|---|
| pack-priv String threadName() Returns the thread name. | |
| threadState | back to summary |
|---|---|
| pack-priv Thread. Returns the thread state. | |
| waitingOn | back to summary |
|---|---|
| pack-priv Object waitingOn() Returns the object that the thread is waiting on.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ThreadSnapshot. | |
| public static final ThreadSnapshot. | |
| public static final ThreadSnapshot. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ThreadSnapshot. | |
| public static ThreadSnapshot. |
| PARK_BLOCKER | back to summary |
|---|---|
| public static final ThreadSnapshot. | |
| WAITING_ON | back to summary |
|---|---|
| public static final ThreadSnapshot. | |
| WAITING_TO_LOCK | back to summary |
|---|---|
| public static final ThreadSnapshot. | |
| BlockerLockType | back to summary |
|---|---|
| private BlockerLockType() | |
| valueOf | back to summary |
|---|---|
| public static ThreadSnapshot. | |
| values | back to summary |
|---|---|
| public static ThreadSnapshot. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ThreadSnapshot. | |
| public static final ThreadSnapshot. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ThreadSnapshot. | |
| public static ThreadSnapshot. |
| ELIMINATED | back to summary |
|---|---|
| public static final ThreadSnapshot. | |
| LOCKED | back to summary |
|---|---|
| public static final ThreadSnapshot. | |
| OwnedLockType | back to summary |
|---|---|
| private OwnedLockType() | |
| valueOf | back to summary |
|---|---|
| public static ThreadSnapshot. | |
| values | back to summary |
|---|---|
| public static ThreadSnapshot. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadSnapshot. | |
| private final Object | |
| private final Thread | |
| private final ThreadSnapshot. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public Object | |
| public Thread | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public ThreadSnapshot. |
| lockTypeValues | back to summary |
|---|---|
| private static final ThreadSnapshot. | |
| obj | back to summary |
|---|---|
| private final Object obj Record Component accessed by obj(). | |
| owner | back to summary |
|---|---|
| private final Thread owner Record Component accessed by owner(). | |
| type | back to summary |
|---|---|
| private final ThreadSnapshot. Record Component accessed by type(). | |
| ThreadBlocker | back to summary |
|---|---|
| pack-priv ThreadBlocker(int typeOrdinal, Object obj, Thread owner) | |
| ThreadBlocker | back to summary |
|---|---|
| private ThreadBlocker(ThreadSnapshot. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| obj | back to summary |
|---|---|
| public Object obj() Record Component getter of obj. | |
| owner | back to summary |
|---|---|
| public Thread owner() Record Component getter of owner. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| type | back to summary |
|---|---|
| public ThreadSnapshot. Record Component getter of type. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final ThreadSnapshot. | |
| private Object | |
| private ThreadSnapshot. | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv void | |
| pack-priv Object | |
| pack-priv ThreadSnapshot. |
| depth | back to summary |
|---|---|
| private int depth | |
| lockTypeValues | back to summary |
|---|---|
| private static final ThreadSnapshot. | |
| obj | back to summary |
|---|---|
| private Object obj | |
| type | back to summary |
|---|---|
| private ThreadSnapshot. | |
| typeOrdinal | back to summary |
|---|---|
| private int typeOrdinal | |
| ThreadLock | back to summary |
|---|---|
| private ThreadLock() | |
| depth | back to summary |
|---|---|
| pack-priv int depth() | |
| finishInit | back to summary |
|---|---|
| pack-priv void finishInit() | |
| lockObject | back to summary |
|---|---|
| pack-priv Object lockObject() | |
| type | back to summary |
|---|---|
| pack-priv ThreadSnapshot. | |