commit | 1a5337fff2cc6cb9d563c8b32aca75f485d23373 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Oct 13 13:48:23 2016 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu Oct 13 17:37:56 2016 -0700 |
tree | 03616e90a91c5c4c1bd7ff03c3d193c3b24bf0db | |
parent | c8b722b3cebff245d614e95d1849de45ef7bdf06 [diff] [blame] |
Move mirror::ObjectArray to ObjPtr Also reduce calls to ObjPtr::Ptr. Bug: 31113334 Test: test-art-host -j32 Change-Id: I73e1b356972bb079b66332f00f7f07451601044e
diff --git a/runtime/mirror/object_reference.h b/runtime/mirror/object_reference.h index 573cb30..71f34c6 100644 --- a/runtime/mirror/object_reference.h +++ b/runtime/mirror/object_reference.h
@@ -42,6 +42,9 @@ reference_ = Compress(other); } + void Assign(ObjPtr<MirrorType> ptr) + REQUIRES_SHARED(Locks::mutator_lock_); + void Clear() { reference_ = 0; DCHECK(IsNull());