OSDN Git Service

Fix oatdump for apps.
authorDave Allison <dallison@google.com>
Wed, 12 Mar 2014 18:05:39 +0000 (11:05 -0700)
committerDave Allison <dallison@google.com>
Wed, 12 Mar 2014 18:08:14 +0000 (11:08 -0700)
This fixes the assertion failure for the interpreter to interpreter bridge offset
when dumping an app.

Bug: 13433669
Change-Id: Ic405ef7e43b849573a27db2ffa570e87b80c6af7

runtime/oat.cc

index d4eea85..454786d 100644 (file)
@@ -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_;
 }