summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_Thread.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2018-06-01 13:14:32 +0100
committerVladimir Marko <vmarko@google.com>2018-06-01 16:31:30 +0100
commitbcf175247272d0e321c8d988c3c01c123b56e36e (patch)
tree9f65ece5ce9474aa4fcf16fbfca6278109dc9a67 /runtime/native/java_lang_Thread.cc
parent09c5ca40635faee00f40f6ca0581dd475efd545e (diff)
ObjPtr<>-ify array allocations.
And remove some unnecessary calls to ObjPtr<>::Ptr(). Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: Ie313980f7f23b33b0ccea4fa8d5131d643c59080
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
-rw-r--r--runtime/native/java_lang_Thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/java_lang_Thread.cc b/runtime/native/java_lang_Thread.cc
index a37a76f809..13871f7be7 100644
--- a/runtime/native/java_lang_Thread.cc
+++ b/runtime/native/java_lang_Thread.cc
@@ -119,7 +119,7 @@ static jboolean Thread_holdsLock(JNIEnv* env, jclass, jobject java_object) {
return JNI_FALSE;
}
Thread* thread = soa.Self();
- return thread->HoldsLock(object.Ptr());
+ return thread->HoldsLock(object);
}
static void Thread_nativeInterrupt(JNIEnv* env, jobject java_thread) {