summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/local_optimizations.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2013-01-07 17:35:41 -0800
committer Elliott Hughes <enh@google.com> 2013-01-08 11:06:02 -0800
commit4cd121ef0cb35fced70c7d9de378277be7a727d9 (patch)
treec786e70cfe50147749d9dd7494dd7112271c8f60 /src/compiler/codegen/local_optimizations.cc
parent1a25aa432314bcf008c11e3514afc0b7aeb64d5c (diff)
Implement the Thread.sleep native method.
This makes returning TS_SLEEPING from JDWP simple and cheap, and makes the stack dumps for sleeping threads more easily understood by app developers (because there's no Object.wait magic going, and the thread state is "Sleeping" rather than "TimedWaiting"). Also make Object.wait() a native method in its own right, so every call into Monitor::Wait can explicitly pass the most appropriate ThreadState: kSleeping, kWaiting, or kTimedWaiting. Also add Thread.sleep and Object.wait(long, int) calls to the ThreadStress test. Change-Id: I49adb45dbcd669eba7cf3def45e6cbfc461a3254
Diffstat (limited to 'src/compiler/codegen/local_optimizations.cc')
0 files changed, 0 insertions, 0 deletions