I ran same test on 3 platforms.
test app: deadlock.java file attached
Ran deadlock test on Linux, Solaris and AIX
Sun JDK 16* on Solaris and Linux
IBM JDK 16* on AIX
In kill -3 thread dump.
The line number shown corresponding to the deadlock thread is 156 in case of IBM jdk whereas other platforms show line no. 157 for the same test
This is breaking our test case as it gives sample file mismatch.