summaryrefslogtreecommitdiff
path: root/runtime/mirror/reference-inl.h
diff options
context:
space:
mode:
author Richard Uhler <ruhler@google.com> 2016-01-15 14:08:05 -0800
committer Richard Uhler <ruhler@google.com> 2016-01-28 15:34:19 -0800
commitc4695dfdab80c280c98a89c20e027a3804191585 (patch)
treeb78f388ac75edd9f02abfcae68aad7d445af75d1 /runtime/mirror/reference-inl.h
parent97f4bc04b61d5cf78b0820dbf18e999b20d7a108 (diff)
Always use pendingNext to test enqueability of references.
Also clean up a misleading comment in a reference queue test. Bug: 24404957 Change-Id: Ieea4788039ecef73cba1871fb480a439bf65b499
Diffstat (limited to 'runtime/mirror/reference-inl.h')
-rw-r--r--runtime/mirror/reference-inl.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/mirror/reference-inl.h b/runtime/mirror/reference-inl.h
index bd4a9c1031..12bfe38e17 100644
--- a/runtime/mirror/reference-inl.h
+++ b/runtime/mirror/reference-inl.h
@@ -27,14 +27,6 @@ inline uint32_t Reference::ClassSize(size_t pointer_size) {
return Class::ComputeClassSize(false, vtable_entries, 2, 0, 0, 0, 0, pointer_size);
}
-inline bool Reference::IsEnqueuable() {
- // Not using volatile reads as an optimization since this is only called with all the mutators
- // suspended.
- const Object* queue = GetFieldObject<mirror::Object>(QueueOffset());
- const Object* queue_next = GetFieldObject<mirror::Object>(QueueNextOffset());
- return queue != nullptr && queue_next == nullptr;
-}
-
} // namespace mirror
} // namespace art