summaryrefslogtreecommitdiff
path: root/runtime/stack.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2022-05-24 16:48:14 +0100
committer David Srbecky <dsrbecky@google.com> 2022-05-27 13:23:45 +0000
commit92d5a61af70a52d005141d34cc71e3a47267e89a (patch)
treef3b358048f01f67b206d19053a971f8463a50c3d /runtime/stack.cc
parenteb6713fe53a34c0a467a6f557469ad6a9fdb5b0b (diff)
Add more verbose log message when stack map isn't found.
Also enable the check in release build. Bug: 206556383 Test: Make the check always fail and observe the log message Change-Id: Ie077677275aff0a1c55a7751f4506830830cbf68
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r--runtime/stack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index 33d3668eb0..a6a5165ec1 100644
--- a/runtime/stack.cc
+++ b/runtime/stack.cc
@@ -129,7 +129,7 @@ uint32_t StackVisitor::GetDexPc(bool abort_on_failure) const {
GetCurrentQuickFrame(), cur_quick_frame_pc_, abort_on_failure);
} else if (cur_oat_quick_method_header_->IsOptimized()) {
StackMap* stack_map = GetCurrentStackMap();
- DCHECK(stack_map->IsValid());
+ CHECK(stack_map->IsValid()) << "StackMap not found for " << std::hex << cur_quick_frame_pc_;
return stack_map->GetDexPc();
} else {
DCHECK(cur_oat_quick_method_header_->IsNterpMethodHeader());