From 700a402244a1a423da4f3ba8032459f4b65fa18f Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Mon, 19 May 2014 16:49:03 -0700 Subject: Now we have a proper C++ library, use std::unique_ptr. Also remove the Android.libcxx.mk and other bits of stlport compatibility mechanics. Change-Id: Icdf7188ba3c79cdf5617672c1cfd0a68ae596a61 --- runtime/thread.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/thread.cc') diff --git a/runtime/thread.cc b/runtime/thread.cc index 488961e..326e02e 100644 --- a/runtime/thread.cc +++ b/runtime/thread.cc @@ -932,7 +932,7 @@ static bool ShouldShowNativeStack(const Thread* thread) } void Thread::DumpJavaStack(std::ostream& os) const { - UniquePtr context(Context::Create()); + std::unique_ptr context(Context::Create()); StackDumpVisitor dumper(os, const_cast(this), context.get(), !tls32_.throwing_OutOfMemoryError); dumper.WalkStack(); @@ -2144,7 +2144,7 @@ static void VerifyRoot(mirror::Object** root, void* /*arg*/, uint32_t /*thread_i } void Thread::VerifyStackImpl() { - UniquePtr context(Context::Create()); + std::unique_ptr context(Context::Create()); RootCallbackVisitor visitorToCallback(VerifyRoot, Runtime::Current()->GetHeap(), GetThreadId()); ReferenceMapVisitor mapper(this, context.get(), visitorToCallback); mapper.WalkStack(); -- cgit v1.1