From bdc93b47e2e7e8f17413669e03bc461d259d16f6 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 29 Mar 2019 16:12:04 +0000 Subject: ObjPtr<>-ify StackTraceElement and ClassLoader. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: I457eeda55bbfb905dd2de0abd68451ab42ef9c1f --- runtime/mirror/class_loader-inl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/mirror/class_loader-inl.h') diff --git a/runtime/mirror/class_loader-inl.h b/runtime/mirror/class_loader-inl.h index 64b4e74f4c..1c98e0aa68 100644 --- a/runtime/mirror/class_loader-inl.h +++ b/runtime/mirror/class_loader-inl.h @@ -20,10 +20,15 @@ #include "class_loader.h" #include "class_table-inl.h" +#include "object-inl.h" namespace art { namespace mirror { +inline ObjPtr ClassLoader::GetParent() { + return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); +} + template