Increase debug information for failed monitor exits
CTS has shown IllegalMonitorStateExceptions where they shouldn't occur.
Ratchet up the debug information in the case of unlocks so the kind of
problem can be better diagnosed. This code is only executed in
exceptional cases and so better debugging wins out over performance.
Also, add helper to dump thread state as something human readable.
Also, JNI internal unit test of monitor enter/exit.
3 files changed