diff options
Diffstat (limited to 'runtime/handle_scope-inl.h')
-rw-r--r-- | runtime/handle_scope-inl.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/handle_scope-inl.h b/runtime/handle_scope-inl.h index 077f45e8f3..492d4b4bd9 100644 --- a/runtime/handle_scope-inl.h +++ b/runtime/handle_scope-inl.h @@ -114,9 +114,9 @@ inline MutableHandle<T> FixedSizeHandleScope<kNumReferences>::NewHandle(T* objec return h; } -template<size_t kNumReferences> template<class MirrorType, bool kPoison> +template<size_t kNumReferences> template<class MirrorType> inline MutableHandle<MirrorType> FixedSizeHandleScope<kNumReferences>::NewHandle( - ObjPtr<MirrorType, kPoison> object) { + ObjPtr<MirrorType> object) { return NewHandle(object.Ptr()); } @@ -191,9 +191,8 @@ MutableHandle<T> VariableSizedHandleScope::NewHandle(T* object) { return current_scope_->NewHandle(object); } -template<class MirrorType, bool kPoison> -inline MutableHandle<MirrorType> VariableSizedHandleScope::NewHandle( - ObjPtr<MirrorType, kPoison> ptr) { +template<class MirrorType> +inline MutableHandle<MirrorType> VariableSizedHandleScope::NewHandle(ObjPtr<MirrorType> ptr) { return NewHandle(ptr.Ptr()); } |