diff options
author | 2013-01-09 16:01:26 -0800 | |
---|---|---|
committer | 2013-01-09 18:07:12 -0800 | |
commit | f327e07b37e349b1ec5eaad6dc294a9b7a081d20 (patch) | |
tree | 2c64b1f6212045a529c18d1dbe04b3da8fd1d6e9 /src/native/java_lang_Thread.cc | |
parent | 9e0c175a0cea5c8c88a6927e6375554118f74a82 (diff) |
Implement ObjectReference.MonitorInfo.
Change-Id: Iefc276939b9e569f4ea4d7a5af9a28276a3fb632
Diffstat (limited to 'src/native/java_lang_Thread.cc')
-rw-r--r-- | src/native/java_lang_Thread.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/native/java_lang_Thread.cc b/src/native/java_lang_Thread.cc index 8db217e4cd..473369ef1a 100644 --- a/src/native/java_lang_Thread.cc +++ b/src/native/java_lang_Thread.cc @@ -119,15 +119,15 @@ static void Thread_nativeSetName(JNIEnv* env, jobject peer, jstring java_name) { // Suspend thread to avoid it from killing itself while we set its name. We don't just hold the // thread list lock to avoid this, as setting the thread name causes mutator to lock/unlock // in the DDMS send code. - bool timeout; - Thread* thread = Thread::SuspendForDebugger(peer, true, &timeout); + bool timed_out; + Thread* thread = Thread::SuspendForDebugger(peer, true, &timed_out); if (thread != NULL) { { ScopedObjectAccess soa(env); thread->SetThreadName(name.c_str()); } Runtime::Current()->GetThreadList()->Resume(thread, true); - } else if (timeout) { + } else if (timed_out) { LOG(ERROR) << "Trying to set thread name to '" << name.c_str() << "' failed as the thread " "failed to suspend within a generous timeout."; } |