From eb8167a4f4d27fce0530f6724ab8032610cd146b Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 7 May 2014 15:43:14 -0700 Subject: Add Handle/HandleScope and delete SirtRef. Delete SirtRef and replaced it with Handle. Handles are value types which wrap around StackReference*. Renamed StackIndirectReferenceTable to HandleScope. Added a scoped handle wrapper which wraps around an Object** and restores it in its destructor. Renamed Handle::get -> Get. Bug: 8473721 Change-Id: Idbfebd4f35af629f0f43931b7c5184b334822c7a --- runtime/mirror/array.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/mirror/array.h') diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h index eead4ebe08..238506e86d 100644 --- a/runtime/mirror/array.h +++ b/runtime/mirror/array.h @@ -23,7 +23,7 @@ namespace art { -template class SirtRef; +template class Handle; namespace mirror { @@ -38,8 +38,8 @@ class MANAGED Array : public Object { bool fill_usable = false) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - static Array* CreateMultiArray(Thread* self, const SirtRef& element_class, - const SirtRef& dimensions) + static Array* CreateMultiArray(Thread* self, const Handle& element_class, + const Handle& dimensions) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); template