From d424d0856927a5d771644b0ef18cb48ef8c04817 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 15 Oct 2014 10:31:46 -0700 Subject: [PATCH] Fix oatdump for no image Added MemMap::Init if we dont initialize the runtime. Bug: 18000219 Change-Id: I1bd715e18838919c0773db5fa25623348326baa6 --- oatdump/oatdump.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index 1f2c0aa1c..2649ab767 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) { -- 2.11.0