summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-10-15 10:31:46 -0700
committerMathieu Chartier <mathieuc@google.com>2014-10-15 10:31:46 -0700
commitd424d0856927a5d771644b0ef18cb48ef8c04817 (patch)
tree66381e851a3fdc4b4d26bf03e4f2fca788f6bb26 /oatdump
parent5c5efc253507eb43265997c9afcd778f72b6cef4 (diff)
downloadart-d424d0856927a5d771644b0ef18cb48ef8c04817.tar.gz
art-d424d0856927a5d771644b0ef18cb48ef8c04817.tar.bz2
art-d424d0856927a5d771644b0ef18cb48ef8c04817.zip
Fix oatdump for no image
Added MemMap::Init if we dont initialize the runtime. Bug: 18000219 Change-Id: I1bd715e18838919c0773db5fa25623348326baa6
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index 1f2c0aa1cc..2649ab767e 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -2225,6 +2225,8 @@ static int oatdump(int argc, char** argv) {
runtime.reset(StartRuntime(args.boot_image_location_,
args.image_location_,
args.instruction_set_));
+ } else {
+ MemMap::Init();
}
if (args.oat_filename_ != nullptr) {