summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-04-09 13:55:55 -0700
committerElliott Hughes <enh@google.com>2012-04-09 13:55:55 -0700
commit34e069606d6f1698cd3c33b39e72b79ae27e1c7b (patch)
tree0feb7e9bde6cfe01c0df3ef2d8de3210570f7ce2 /test
parente62934d85fbc2d935afdad57eeade39ecbd7440a (diff)
downloadart-34e069606d6f1698cd3c33b39e72b79ae27e1c7b.zip
art-34e069606d6f1698cd3c33b39e72b79ae27e1c7b.tar.gz
art-34e069606d6f1698cd3c33b39e72b79ae27e1c7b.tar.bz2
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 'test')
-rw-r--r--test/ReferenceMap/stack_walk_refmap_jni.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ReferenceMap/stack_walk_refmap_jni.cc b/test/ReferenceMap/stack_walk_refmap_jni.cc
index 3a16833..0370ead 100644
--- a/test/ReferenceMap/stack_walk_refmap_jni.cc
+++ b/test/ReferenceMap/stack_walk_refmap_jni.cc
@@ -63,7 +63,7 @@ struct ReferenceMap2Visitor : public Thread::StackVisitor {
// Enable this to dump reference map to LOG(INFO)
if (false) {
- ScopedThreadStateChange tsc(Thread::Current(), Thread::kRunnable);
+ ScopedThreadStateChange tsc(Thread::Current(), kRunnable);
art::verifier::DexVerifier::VerifyMethodAndDump(m);
}
const uint8_t* ref_bitmap = NULL;