8358588: ThreadSnapshot.ThreadLock should be static nested class

Reviewed-by: alanb, sspitsyn, amenkov
This commit is contained in:
Aleksey Shipilev 2025-06-05 09:02:23 +00:00
parent ace70a6d6a
commit dc949003de

View File

@ -175,7 +175,7 @@ class ThreadSnapshot {
/** /**
* Represents a locking operation of a thread at a specific stack depth. * Represents a locking operation of a thread at a specific stack depth.
*/ */
private class ThreadLock { private static class ThreadLock {
private static final OwnedLockType[] lockTypeValues = OwnedLockType.values(); // cache private static final OwnedLockType[] lockTypeValues = OwnedLockType.values(); // cache
// set by the VM // set by the VM