From dfe02f6aafee264478d510b9742ee266ea52e8a8 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Mon, 1 Feb 2016 20:15:11 -0800 Subject: Fix remaining read barrier issues in image relocation Added a way to disallow read barriers, this makes it easy to find the issues. Bug: 26786304 Change-Id: I7ebb50832686d03e096a979aae9741239371683f --- runtime/mirror/array.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime/mirror/array.h') diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h index 2bd6c5b9a1..9a21ec255c 100644 --- a/runtime/mirror/array.h +++ b/runtime/mirror/array.h @@ -183,7 +183,9 @@ class MANAGED PrimitiveArray : public Array { // Either an IntArray or a LongArray. class PointerArray : public Array { public: - template + template T GetElementPtrSize(uint32_t idx, size_t ptr_size) SHARED_REQUIRES(Locks::mutator_lock_); @@ -196,7 +198,9 @@ class PointerArray : public Array { // Fixup the pointers in the dest arrays by passing our pointers through the visitor. Only copies // to dest if visitor(source_ptr) != source_ptr. - template + template void Fixup(mirror::PointerArray* dest, size_t pointer_size, const Visitor& visitor) SHARED_REQUIRES(Locks::mutator_lock_); }; -- cgit v1.2.3-59-g8ed1b