summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread.cc4
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