diff options
| author | 2019-03-29 16:12:04 +0000 | |
|---|---|---|
| committer | 2019-04-01 09:37:59 +0000 | |
| commit | bdc93b47e2e7e8f17413669e03bc461d259d16f6 (patch) | |
| tree | bd1c632196a437e90d012475afa83adf614be538 /runtime/mirror/class_loader-inl.h | |
| parent | f52d92fce224c86491d9b0fd6fca805564119426 (diff) | |
ObjPtr<>-ify StackTraceElement and ClassLoader.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: I457eeda55bbfb905dd2de0abd68451ab42ef9c1f
Diffstat (limited to 'runtime/mirror/class_loader-inl.h')
| -rw-r--r-- | runtime/mirror/class_loader-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
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> ClassLoader::GetParent() { + return GetFieldObject<ClassLoader>(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); +} + template <bool kVisitClasses, VerifyObjectFlags kVerifyFlags, ReadBarrierOption kReadBarrierOption, |