From c6104ae36351591157fa09c482796256f82daddc Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Wed, 12 Mar 2014 11:05:39 -0700 Subject: [PATCH] Fix oatdump for apps. This fixes the assertion failure for the interpreter to interpreter bridge offset when dumping an app. Bug: 13433669 Change-Id: Ic405ef7e43b849573a27db2ffa570e87b80c6af7 --- runtime/oat.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/oat.cc b/runtime/oat.cc index d4eea85bb..454786df8 100644 --- a/runtime/oat.cc +++ b/runtime/oat.cc @@ -132,7 +132,8 @@ const void* OatHeader::GetInterpreterToInterpreterBridge() const { uint32_t OatHeader::GetInterpreterToInterpreterBridgeOffset() const { DCHECK(IsValid()); - CHECK_GE(interpreter_to_interpreter_bridge_offset_, executable_offset_); + CHECK(interpreter_to_interpreter_bridge_offset_ == 0 || + interpreter_to_interpreter_bridge_offset_ >= executable_offset_); return interpreter_to_interpreter_bridge_offset_; } -- 2.11.0