From bcf175247272d0e321c8d988c3c01c123b56e36e Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 1 Jun 2018 13:14:32 +0100 Subject: 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 --- runtime/mirror/class_ext.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/mirror/class_ext.cc') 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 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(obsolete_dex_cache_off, dex_caches.Ptr()); - SetFieldObject(obsolete_methods_off, methods.Ptr()); + SetFieldObject(obsolete_dex_cache_off, dex_caches); + SetFieldObject(obsolete_methods_off, methods); } // We really need to be careful how we update this. If we ever in the future make it so that -- cgit v1.2.3-59-g8ed1b