diff options
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index cc17d57228..0ae7a9bbe6 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -556,12 +556,7 @@ class ClassLinker { REQUIRES_SHARED(Locks::mutator_lock_); template <ReadBarrierOption kReadBarrierOption = kWithReadBarrier> - ObjPtr<mirror::ObjectArray<mirror::Class>> GetClassRoots() REQUIRES_SHARED(Locks::mutator_lock_) { - ObjPtr<mirror::ObjectArray<mirror::Class>> class_roots = - class_roots_.Read<kReadBarrierOption>(); - DCHECK(class_roots != nullptr); - return class_roots; - } + ObjPtr<mirror::ObjectArray<mirror::Class>> GetClassRoots() REQUIRES_SHARED(Locks::mutator_lock_); // Move the class table to the pre-zygote table to reduce memory usage. This works by ensuring // that no more classes are ever added to the pre zygote table which makes it that the pages |