From 92d5a61af70a52d005141d34cc71e3a47267e89a Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 24 May 2022 16:48:14 +0100 Subject: 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 --- runtime/stack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stack.cc') 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()); -- cgit v1.2.3-59-g8ed1b