summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/object_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/object_array.h')
-rw-r--r--runtime/mirror/object_array.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/mirror/object_array.h b/runtime/mirror/object_array.h
index 7f9e716e6e..5ff049081f 100644
--- a/runtime/mirror/object_array.h
+++ b/runtime/mirror/object_array.h
@@ -78,6 +78,11 @@ class MANAGED ObjectArray : public Array {
ObjectArray<T>* CopyOf(Thread* self, int32_t new_length)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ // TODO fix thread safety analysis broken by the use of template. This should be
+ // SHARED_LOCKS_REQUIRED(Locks::mutator_lock_).
+ template<const bool kVisitClass, typename Visitor>
+ void VisitReferences(const Visitor& visitor) NO_THREAD_SAFETY_ANALYSIS;
+
private:
static MemberOffset OffsetOfElement(int32_t i);