summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDave Allison <dallison@google.com>2014-03-12 11:05:39 -0700
committerDave Allison <dallison@google.com>2014-03-12 11:08:14 -0700
commitc6104ae36351591157fa09c482796256f82daddc (patch)
tree142c6453e7aa53b3aed88cfa12c417858da285ac /runtime
parentca46e2003360b44f4c043f6da87092592bc3d6d6 (diff)
downloadart-c6104ae36351591157fa09c482796256f82daddc.zip
art-c6104ae36351591157fa09c482796256f82daddc.tar.gz
art-c6104ae36351591157fa09c482796256f82daddc.tar.bz2
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
Diffstat (limited to 'runtime')
-rw-r--r--runtime/oat.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/oat.cc b/runtime/oat.cc
index d4eea85..454786d 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_;
}