diff options
| author | 2017-01-12 18:58:38 +0000 | |
|---|---|---|
| committer | 2017-01-12 18:58:39 +0000 | |
| commit | 9e68f5043323eaf4543ebf3b6f496145d8ae77a2 (patch) | |
| tree | bc6b03ddb6a20697709d92151a188c1f17458a25 /runtime/mirror/object_reference.h | |
| parent | 7620a3b58a9286fae376f4705b602310e5fd464a (diff) | |
| parent | 65f5f247a367af9d6b9ac63767b69ecf3ab079bc (diff) | |
Merge "Fix race condition btw DelayReferenceRefernent vs Reference.clear()."
Diffstat (limited to 'runtime/mirror/object_reference.h')
| -rw-r--r-- | runtime/mirror/object_reference.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/mirror/object_reference.h b/runtime/mirror/object_reference.h index 71f34c66e2..a96a120d68 100644 --- a/runtime/mirror/object_reference.h +++ b/runtime/mirror/object_reference.h @@ -94,6 +94,9 @@ class MANAGED HeapReference : public ObjectReference<kPoisonHeapReferences, Mirr static HeapReference<MirrorType> FromObjPtr(ObjPtr<MirrorType> ptr) REQUIRES_SHARED(Locks::mutator_lock_); + bool CasWeakRelaxed(MirrorType* old_ptr, MirrorType* new_ptr) + REQUIRES_SHARED(Locks::mutator_lock_); + private: explicit HeapReference(MirrorType* mirror_ptr) REQUIRES_SHARED(Locks::mutator_lock_) : ObjectReference<kPoisonHeapReferences, MirrorType>(mirror_ptr) {} |