commit | 3ce4b266a8e620ae4205922d828acc5976a99006 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 24 11:24:02 2012 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Feb 24 11:24:02 2012 -0800 |
tree | f1b1791dfce337e7c0fbaf76e3945611cc95ed9f | |
parent | 6b00e189defc8a6b1acbd736c65d46bbfaaa2cd6 [diff] |
Fix a thread state misunderstanding. Note that this means that we now give the right answer for Object.wait(long) but the wrong answer for Thread.sleep(long). It's not obvious how to easily fix the latter. It seems like the easiest fix will be to check the class of the object that's being waited on, and using TS_SLEEPING if it's a ThreadLock; we already do similar in the stack dumping. Change-Id: I83c0c54af1061e1678cefe7b07389dd10c2ea3d5