summaryrefslogtreecommitdiff
path: root/runtime/class_linker-inl.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-05-31 12:55:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-05-31 12:55:53 +0000
commit1539a11150ca9c28fec353b38508267c41d7814b (patch)
treea720b8e022c4eb6ddf222bdd3fea739147c94065 /runtime/class_linker-inl.h
parentc8c4f2930892c612cadea9b5906858745c401707 (diff)
parenta8bba7d0853b372aea3ed3ea154fb2b2a23c2c9d (diff)
Merge "ObjPtr<>-ify ClassLinker::FindClass(), fix 1 stale reference use."
Diffstat (limited to 'runtime/class_linker-inl.h')
-rw-r--r--runtime/class_linker-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/class_linker-inl.h b/runtime/class_linker-inl.h
index 7a99d3dc5e..25eb85d675 100644
--- a/runtime/class_linker-inl.h
+++ b/runtime/class_linker-inl.h
@@ -33,8 +33,8 @@
namespace art {
-inline mirror::Class* ClassLinker::FindArrayClass(Thread* self,
- ObjPtr<mirror::Class>* element_class) {
+inline ObjPtr<mirror::Class> ClassLinker::FindArrayClass(Thread* self,
+ ObjPtr<mirror::Class>* element_class) {
for (size_t i = 0; i < kFindArrayCacheSize; ++i) {
// Read the cached array class once to avoid races with other threads setting it.
ObjPtr<mirror::Class> array_class = find_array_class_cache_[i].Read();