diff options
| author | 2016-02-02 20:22:47 +0000 | |
|---|---|---|
| committer | 2016-02-02 20:22:47 +0000 | |
| commit | a89d6d630b6fdb591d3dce536f8bca35deae307e (patch) | |
| tree | dbc55a834cbc60e5251884bc0901cd285b536561 /runtime/mirror/reference-inl.h | |
| parent | 1ef02af31d5936a59ddeb762cb3cf767b599787a (diff) | |
| parent | c4695dfdab80c280c98a89c20e027a3804191585 (diff) | |
Merge "Always use pendingNext to test enqueability of references."
Diffstat (limited to 'runtime/mirror/reference-inl.h')
| -rw-r--r-- | runtime/mirror/reference-inl.h | 8 |
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 |