From e66ac79b90a12b01b9d67ee9f7f586e638e67fab Mon Sep 17 00:00:00 2001 From: jeffhao Date: Mon, 19 Mar 2012 16:08:46 -0700 Subject: Fix to use a new context when verifying the stack. (cherry picked from commit 19ff5e52f1409838a505c7f63fd57604c3b48fb3) Change-Id: I45e8cc09a81d41b250a4496e2d010746b208a715 --- src/thread.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/thread.cc b/src/thread.cc index f15bfd562c..ce81a8bf95 100644 --- a/src/thread.cc +++ b/src/thread.cc @@ -1734,8 +1734,8 @@ void VerifyObject(const Object* obj, void*) { } void Thread::VerifyStack() { - Context* context = GetLongJumpContext(); - ReferenceMapVisitor mapper(context, VerifyObject, NULL); + UniquePtr context(Context::Create()); + ReferenceMapVisitor mapper(context.get(), VerifyObject, NULL); WalkStack(&mapper); } #endif -- cgit v1.2.3-59-g8ed1b