-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: core-libs
-
None
ReentrantLock::toString and ReentrantReadWriteLock.WriteLock::toString include the thread name when locked (or holding the write lock). This is okay when all threads name have a unique name but we might have to re-examine it for virtual threads as they don't get a name by default. Including the thread identifier in the String might work but changing it might be an incompatible change due to the String representation being specified.