From 6834d3414308e3d536bc685dbb3d60fe70186f23 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 25 May 2018 13:12:09 +0100 Subject: Remove mirror::Reference::java_lang_ref_Reference. And some #include cleanup after previous CLs removing static GcRoot<>s. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: I56b34637f9d793ed7680696a1eeedd07d061ad00 --- runtime/mirror/reference.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'runtime/mirror/reference.h') diff --git a/runtime/mirror/reference.h b/runtime/mirror/reference.h index b10c29444e..63c5ae5ff8 100644 --- a/runtime/mirror/reference.h +++ b/runtime/mirror/reference.h @@ -20,8 +20,6 @@ #include "base/enums.h" #include "base/macros.h" #include "base/mutex.h" -#include "class.h" -#include "gc_root.h" #include "obj_ptr.h" #include "object.h" #include "read_barrier_option.h" @@ -98,12 +96,6 @@ class MANAGED Reference : public Object { return GetPendingNext() == nullptr; } - template - static ALWAYS_INLINE Class* GetJavaLangRefReference() REQUIRES_SHARED(Locks::mutator_lock_); - static void SetClass(ObjPtr klass); - static void ResetClass(); - static void VisitRoots(RootVisitor* visitor) REQUIRES_SHARED(Locks::mutator_lock_); - private: // Note: This avoids a read barrier, it should only be used by the GC. HeapReference* GetReferentReferenceAddr() REQUIRES_SHARED(Locks::mutator_lock_) { @@ -116,8 +108,6 @@ class MANAGED Reference : public Object { HeapReference queue_next_; HeapReference referent_; // Note this is Java volatile: - static GcRoot java_lang_ref_Reference_; - friend struct art::ReferenceOffsets; // for verifying offset information friend class gc::ReferenceProcessor; friend class gc::ReferenceQueue; -- cgit v1.2.3-59-g8ed1b