summaryrefslogtreecommitdiff
path: root/runtime/mirror/class_ext.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-06-01 13:14:32 +0100
committer Vladimir Marko <vmarko@google.com> 2018-06-01 16:31:30 +0100
commitbcf175247272d0e321c8d988c3c01c123b56e36e (patch)
tree9f65ece5ce9474aa4fcf16fbfca6278109dc9a67 /runtime/mirror/class_ext.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/mirror/class_ext.cc')
-rw-r--r--runtime/mirror/class_ext.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/class_ext.cc b/runtime/mirror/class_ext.cc
index 7214620c93..44bf9891cd 100644
--- a/runtime/mirror/class_ext.cc
+++ b/runtime/mirror/class_ext.cc
@@ -43,8 +43,8 @@ void ClassExt::SetObsoleteArrays(ObjPtr<PointerArray> methods,
auto obsolete_dex_cache_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_);
auto obsolete_methods_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_);
DCHECK(!Runtime::Current()->IsActiveTransaction());
- SetFieldObject<false>(obsolete_dex_cache_off, dex_caches.Ptr());
- SetFieldObject<false>(obsolete_methods_off, methods.Ptr());
+ SetFieldObject<false>(obsolete_dex_cache_off, dex_caches);
+ SetFieldObject<false>(obsolete_methods_off, methods);
}
// We really need to be careful how we update this. If we ever in the future make it so that