diff options
| author | 2014-03-12 11:05:39 -0700 | |
|---|---|---|
| committer | 2014-03-12 11:08:14 -0700 | |
| commit | c6104ae36351591157fa09c482796256f82daddc (patch) | |
| tree | 142c6453e7aa53b3aed88cfa12c417858da285ac | |
| parent | ca46e2003360b44f4c043f6da87092592bc3d6d6 (diff) | |
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
| -rw-r--r-- | runtime/oat.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/oat.cc b/runtime/oat.cc index d4eea85bb3..454786df8c 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_; } |