summaryrefslogtreecommitdiffstats
path: root/runtime/native/java_lang_Thread.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-24 13:42:22 -0800
committerAndreas Gampe <agampe@google.com>2014-11-24 13:43:11 -0800
commit9f612ffab2b188d80027d961d7118eb2c461b5ad (patch)
treeaa5a5c83810b13f726b16670bc4442a4f271ee55 /runtime/native/java_lang_Thread.cc
parentc6c88d2079f0d47eb86a2e2e2f53cab25b0503c1 (diff)
downloadart-9f612ffab2b188d80027d961d7118eb2c461b5ad.tar.gz
art-9f612ffab2b188d80027d961d7118eb2c461b5ad.tar.bz2
art-9f612ffab2b188d80027d961d7118eb2c461b5ad.zip
ART: Fix unused variables and functions
Change-Id: Icbab884d2dfd71656347368b424cb35cbf524051
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
-rw-r--r--runtime/native/java_lang_Thread.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/native/java_lang_Thread.cc b/runtime/native/java_lang_Thread.cc
index 420e9df2f2..760eb9bc96 100644
--- a/runtime/native/java_lang_Thread.cc
+++ b/runtime/native/java_lang_Thread.cc
@@ -118,14 +118,12 @@ static void Thread_nativeInterrupt(JNIEnv* env, jobject java_thread) {
static void Thread_nativeSetName(JNIEnv* env, jobject peer, jstring java_name) {
ScopedUtfChars name(env, java_name);
- Thread* self;
{
ScopedObjectAccess soa(env);
if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) {
soa.Self()->SetThreadName(name.c_str());
return;
}
- self = soa.Self();
}
// 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