Add more error printing to TransitionFromSuspendedToRunnable
Bug: 24191051
Change-Id: I5c66ba5c76bf86e8d603110989b9da883ca4ca65
diff --git a/runtime/thread-inl.h b/runtime/thread-inl.h
index 8bf241b..b3dd2eb 100644
--- a/runtime/thread-inl.h
+++ b/runtime/thread-inl.h
@@ -191,7 +191,9 @@
PassActiveSuspendBarriers(this);
} else if ((old_state_and_flags.as_struct.flags & kCheckpointRequest) != 0) {
// Impossible
- LOG(FATAL) << "Fatal, wrong checkpoint flag";
+ LOG(FATAL) << "Transitioning to runnable with checkpoint flag, "
+ << " flags=" << old_state_and_flags.as_struct.flags
+ << " state=" << old_state_and_flags.as_struct.state;
} else if ((old_state_and_flags.as_struct.flags & kSuspendRequest) != 0) {
// Wait while our suspend count is non-zero.
MutexLock mu(this, *Locks::thread_suspend_count_lock_);