summaryrefslogtreecommitdiff
path: root/runtime/mirror/reference.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-05-25 13:12:09 +0100
committer Vladimir Marko <vmarko@google.com> 2018-05-25 14:12:31 +0100
commit6834d3414308e3d536bc685dbb3d60fe70186f23 (patch)
tree7c579de52d3acc5cc4d02babf25c7fcb2b94793b /runtime/mirror/reference.h
parentc7aa87e1666ac48ddf9149cfdfd64b026b3969e5 (diff)
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
Diffstat (limited to 'runtime/mirror/reference.h')
-rw-r--r--runtime/mirror/reference.h10
1 files changed, 0 insertions, 10 deletions
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<kWithoutReadBarrier>() == nullptr;
}
- template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier>
- static ALWAYS_INLINE Class* GetJavaLangRefReference() REQUIRES_SHARED(Locks::mutator_lock_);
- static void SetClass(ObjPtr<Class> 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<Object>* GetReferentReferenceAddr() REQUIRES_SHARED(Locks::mutator_lock_) {
@@ -116,8 +108,6 @@ class MANAGED Reference : public Object {
HeapReference<Reference> queue_next_;
HeapReference<Object> referent_; // Note this is Java volatile:
- static GcRoot<Class> java_lang_ref_Reference_;
-
friend struct art::ReferenceOffsets; // for verifying offset information
friend class gc::ReferenceProcessor;
friend class gc::ReferenceQueue;