Runnable -> Suspended -> Runnable, avoid 2 locks

Allow some freedom in the Transtion code to change thread state without
holding a lock in 2 cases where it is safe.

1) into Suspended we know that we're suspended and so checking the
suspend count is a mute point.
2) when going into Runnable we can do a racy check before doing a
secondary check after we've acquired a share on the mutator lock.

Change-Id: Ibf0e5f42acc1ff3cf06312ef001a74344d4dfa8c
2 files changed
tree: 4b77ecc1dc6f2a76c755381a2925f34ed080c74f
  1. .gitignore
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/