diff options
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
-rw-r--r-- | runtime/native/java_lang_Thread.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/native/java_lang_Thread.cc b/runtime/native/java_lang_Thread.cc index 65e3009c0f..2c79a38ca0 100644 --- a/runtime/native/java_lang_Thread.cc +++ b/runtime/native/java_lang_Thread.cc @@ -108,6 +108,7 @@ static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean ha case ThreadState::kWaitingForGcThreadFlip: return kJavaWaiting; case ThreadState::kNativeForAbort: return kJavaWaiting; case ThreadState::kSuspended: return kJavaRunnable; + case ThreadState::kInvalidState: break; // Don't add a 'default' here so the compiler can spot incompatible enum changes. } LOG(ERROR) << "Unexpected thread state: " << internal_thread_state; |