Skip to content

Commit 082acca

Browse files
authored
Merge pull request #44 from Darshan-N3/FixLockedMonitors
Fix for LockedMonitors
2 parents 845fbd6 + 5bfd493 commit 082acca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/jdk/java/lang/management/ThreadMXBean/LockingThread.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23+
/*
24+
* ===========================================================================
25+
* (c) Copyright IBM Corp. 2025, 2025 All Rights Reserved
26+
* ===========================================================================
27+
*/
2328

2429
/*
2530
* @bug 5086470 6358247
@@ -182,7 +187,7 @@ void checkThreadInfo(ThreadInfo info) throws Exception {
182187
throw new RuntimeException("LockName: " + lockName +
183188
" class name not matched. Expected: " + waitingLockName);
184189
}
185-
int i = Integer.parseInt(s[1], 16);
190+
int i = Integer.parseUnsignedInt(s[1], 16);
186191
if (hcode != i) {
187192
throw new RuntimeException("LockName: " + lockName +
188193
" IdentityHashCode not matched. Expected: " + hcode);

0 commit comments

Comments
 (0)