summaryrefslogtreecommitdiffstats
path: root/runtime/class_linker-inl.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2016-10-05 18:32:08 -0700
committerMathieu Chartier <mathieuc@google.com>2016-10-06 13:55:58 -0700
commitc4f3925490a73da8dc74884a1deb965d4ecaf14e (patch)
tree7fe566827f8ab903af1acb5697c86a6efe3187b3 /runtime/class_linker-inl.h
parent18f7de841fee3ca6f0c04e7caa57c3ce76b36231 (diff)
downloadart-c4f3925490a73da8dc74884a1deb965d4ecaf14e.tar.gz
art-c4f3925490a73da8dc74884a1deb965d4ecaf14e.tar.bz2
art-c4f3925490a73da8dc74884a1deb965d4ecaf14e.zip
Move remaining jobject related functions to use ObjPtr
Also added ObjPtr::DownCast. Bug: 31113334 Test: test-art-host Change-Id: I59c253211dc435579ffdfd49f856861ab13d262c
Diffstat (limited to 'runtime/class_linker-inl.h')
-rw-r--r--runtime/class_linker-inl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/class_linker-inl.h b/runtime/class_linker-inl.h
index 378da57bba..fa971c4c2b 100644
--- a/runtime/class_linker-inl.h
+++ b/runtime/class_linker-inl.h
@@ -26,6 +26,7 @@
#include "mirror/iftable.h"
#include "mirror/object_array.h"
#include "handle_scope-inl.h"
+#include "scoped_thread_state_change-inl.h"
#include <atomic>
@@ -247,8 +248,8 @@ ArtMethod* ClassLinker::FindMethodForProxy(mirror::Class* proxy_class, ArtMethod
if (!self->IsJWeakCleared(data.weak_root) &&
proxy_method->HasSameDexCacheResolvedTypes(data.resolved_types,
image_pointer_size_)) {
- mirror::DexCache* dex_cache = down_cast<mirror::DexCache*>(
- self->DecodeJObject(data.weak_root));
+ ObjPtr<mirror::DexCache> dex_cache =
+ ObjPtr<mirror::DexCache>::DownCast(self->DecodeJObject(data.weak_root));
if (dex_cache != nullptr) {
ArtMethod* resolved_method = dex_cache->GetResolvedMethod(
proxy_method->GetDexMethodIndex(), image_pointer_size_);