diff options
| author | 2012-03-19 16:08:46 -0700 | |
|---|---|---|
| committer | 2012-03-23 16:53:08 -0700 | |
| commit | e66ac79b90a12b01b9d67ee9f7f586e638e67fab (patch) | |
| tree | aec673a015a0b6ef3107a2612b2dc455ea163561 /src | |
| parent | 250455229aa0cc07bbd18174efe510bd52631a99 (diff) | |
Fix to use a new context when verifying the stack.
(cherry picked from commit 19ff5e52f1409838a505c7f63fd57604c3b48fb3)
Change-Id: I45e8cc09a81d41b250a4496e2d010746b208a715
Diffstat (limited to 'src')
| -rw-r--r-- | src/thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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(Context::Create()); + ReferenceMapVisitor mapper(context.get(), VerifyObject, NULL); WalkStack(&mapper); } #endif |