From 2969bcdcd80624e4a4fef696b54c2c76b44b6853 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 9 Mar 2015 12:57:41 -0700 Subject: ART: Refactor unstarted runtime Refactor and clean up unstarted runtime. Bug: 19542228 Change-Id: Ib3e4b3517e06e8242d4fed32ca59419fef553a47 --- dex2oat/dex2oat.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dex2oat') diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index c3303e1f2e..bb80a70e14 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -56,6 +56,7 @@ #include "gc/space/image_space.h" #include "gc/space/space-inl.h" #include "image_writer.h" +#include "interpreter/unstarted_runtime.h" #include "leb128.h" #include "mirror/art_method-inl.h" #include "mirror/class-inl.h" @@ -1541,8 +1542,14 @@ class Dex2Oat FINAL { } } runtime->GetClassLinker()->FixupDexCaches(runtime->GetResolutionMethod()); + + // Initialize maps for unstarted runtime. This needs to be here, as running clinits needs this + // set up. + interpreter::UnstartedRuntimeInitialize(); + runtime->GetClassLinker()->RunRootClinits(); runtime_ = runtime; + return true; } -- cgit v1.2.3