From 0ec77d6df72ad9c352e23d8a2257530328f64a4b Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Tue, 22 Apr 2014 10:51:17 -0700 Subject: Warn when thread state lookup fails. Change-Id: I06781caddcade26148921bc225f28db8b3a63a35 --- runtime/native/java_lang_Thread.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') diff --git a/runtime/native/java_lang_Thread.cc b/runtime/native/java_lang_Thread.cc index 0b84005..86db893 100644 --- a/runtime/native/java_lang_Thread.cc +++ b/runtime/native/java_lang_Thread.cc @@ -88,6 +88,7 @@ static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean ha case kSuspended: return kJavaRunnable; // Don't add a 'default' here so the compiler can spot incompatible enum changes. } + LOG(ERROR) << "Unexpected thread state: " << internal_thread_state; return -1; // Unreachable. } -- cgit v1.1