summaryrefslogtreecommitdiff
path: root/src/object.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-04-09 13:55:55 -0700
committer Elliott Hughes <enh@google.com> 2012-04-09 13:55:55 -0700
commit34e069606d6f1698cd3c33b39e72b79ae27e1c7b (patch)
tree0feb7e9bde6cfe01c0df3ef2d8de3210570f7ce2 /src/object.cc
parente62934d85fbc2d935afdad57eeade39ecbd7440a (diff)
Remove the useless "suspend count already zero" message for new threads.
We can actually detect the expected case of this warning ourselves, and not emit it. Then we can upgrade the WARNING to a FATAL. I also tripped over the fact that the operator<< for Thread::State was out of date, so I've moved the Thread enums up to namespace scope so the script can automatically generate correct operator<< implementations for us. (All the high-numbered thread states have been off by one for a couple of weeks.) Change-Id: I5de573d33d641e5a3cba87b370e9620c8c66e633
Diffstat (limited to 'src/object.cc')
-rw-r--r--src/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cc b/src/object.cc
index f2bddc37c7..74195f8789 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -559,7 +559,7 @@ uint32_t Method::FindCatchBlock(Class* exception_type, uint32_t dex_pc) const {
void Method::Invoke(Thread* self, Object* receiver, JValue* args, JValue* result) const {
// Push a transition back into managed code onto the linked list in thread.
- CHECK_EQ(Thread::kRunnable, self->GetState());
+ CHECK_EQ(kRunnable, self->GetState());
#if !defined(ART_USE_LLVM_COMPILER)
NativeToManagedRecord record;