diff options
author | Sebastien Hertz <shertz@google.com> | 2013-10-04 10:40:37 +0200 |
---|---|---|
committer | Sebastien Hertz <shertz@google.com> | 2013-10-09 19:48:54 +0200 |
commit | 74e256b8e442417d4ba2054c771c1e4f41062768 (patch) | |
tree | 8060d58f101c7d0ea7493728c658aad7bfa535d3 /runtime/stack.cc | |
parent | 9f69b62e6b009b29e6420c49e7444e91466a6a33 (diff) | |
download | art-74e256b8e442417d4ba2054c771c1e4f41062768.zip art-74e256b8e442417d4ba2054c771c1e4f41062768.tar.gz art-74e256b8e442417d4ba2054c771c1e4f41062768.tar.bz2 |
Add missing references.
This mainly avoids implicit copies when extracting an object from a container.
Change-Id: If4d0e6153e8c2b48345fde5bb546b4c65649fcf3
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r-- | runtime/stack.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index 1715664..5d3a9a5 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -253,7 +253,7 @@ std::string StackVisitor::DescribeLocation() const { return result; } -instrumentation::InstrumentationStackFrame StackVisitor::GetInstrumentationStackFrame(uint32_t depth) const { +instrumentation::InstrumentationStackFrame& StackVisitor::GetInstrumentationStackFrame(uint32_t depth) const { return thread_->GetInstrumentationStack()->at(depth); } @@ -309,7 +309,7 @@ void StackVisitor::WalkStack(bool include_transitions) { // While profiling, the return pc is restored from the side stack, except when walking // the stack for an exception where the side stack will be unwound in VisitFrame. if (GetQuickInstrumentationExitPc() == return_pc) { - instrumentation::InstrumentationStackFrame instrumentation_frame = + const instrumentation::InstrumentationStackFrame& instrumentation_frame = GetInstrumentationStackFrame(instrumentation_stack_depth); instrumentation_stack_depth++; if (GetMethod() == Runtime::Current()->GetCalleeSaveMethod(Runtime::kSaveAll)) { |