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.

Change-Id: I9c06fbce7e6c9ebbb950a4e400f65c791ebe2ba4
3 files changed
tree: 56c2c2a889df39662397c7fe97acf77b90d0ff8d
  1. Android.mk
  2. build/
  3. jdwpspy/
  4. src/
  5. test/
  6. tools/