From 88dbad33ae92167a89a5d5469f39f41624535dbf Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 26 Jun 2018 19:54:12 -0700 Subject: ART: Do some include-what-you-use Help with transitive includes. In preparation for new specialized headers reducing transitivity. Bug: 118385392 Test: mmma art Change-Id: Ib465ecceec3331ea81588fb4a43eb65e766b6904 --- runtime/class_linker-inl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'runtime/class_linker-inl.h') diff --git a/runtime/class_linker-inl.h b/runtime/class_linker-inl.h index 0dc62d346d..7e011371b7 100644 --- a/runtime/class_linker-inl.h +++ b/runtime/class_linker-inl.h @@ -22,7 +22,6 @@ #include "art_field-inl.h" #include "art_method-inl.h" #include "class_linker.h" -#include "gc/heap-inl.h" #include "gc_root-inl.h" #include "handle_scope-inl.h" #include "mirror/class_loader.h" @@ -439,6 +438,14 @@ inline void ClassLinker::VisitClassTables(const Visitor& visitor) { } } +template +inline ObjPtr> ClassLinker::GetClassRoots() { + ObjPtr> class_roots = + class_roots_.Read(); + DCHECK(class_roots != nullptr); + return class_roots; +} + } // namespace art #endif // ART_RUNTIME_CLASS_LINKER_INL_H_ -- cgit v1.2.3-59-g8ed1b