From 1cc62e4ea24828fdb3f3da0b8603f0b107d09a04 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Mon, 3 Oct 2016 18:01:28 -0700 Subject: Rename ObjPtr::Decode to ObjPtr::Ptr Done to prevent ambiguity with ScopedObjectAccess::Decode. Bug: 31113334 Test: test-art-host Change-Id: I07a2497cc9cf66386311798933547471987fc316 --- runtime/obj_ptr-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/obj_ptr-inl.h') diff --git a/runtime/obj_ptr-inl.h b/runtime/obj_ptr-inl.h index 1c698b5c4d..f0a5f6f2e2 100644 --- a/runtime/obj_ptr-inl.h +++ b/runtime/obj_ptr-inl.h @@ -33,7 +33,7 @@ inline bool ObjPtr::IsValid() const { template inline void ObjPtr::AssertValid() const { if (kPoison) { - CHECK(IsValid()) << "Stale object pointer " << DecodeUnchecked() << " , expected cookie " + CHECK(IsValid()) << "Stale object pointer " << Ptr() << " , expected cookie " << TrimCookie(Thread::Current()->GetPoisonObjectCookie()) << " but got " << GetCookie(); } } @@ -56,7 +56,7 @@ inline uintptr_t ObjPtr::Encode(MirrorType* ptr) { template inline std::ostream& operator<<(std::ostream& os, ObjPtr ptr) { // May be used for dumping bad pointers, do not use the checked version. - return os << ptr.DecodeUnchecked(); + return os << ptr.PtrUnchecked(); } } // namespace art -- cgit v1.2.3-59-g8ed1b