System calls dex2oat when opening a dex file with an output location
This fix addresses the old dalvik test 071. The test has 2 source jars,
and one is loaded later. To support this, the other jar has to be run
though dex2oat. Eventually, we want the system to invoke dex2oat on any
jar files that need it.
Change-Id: Ie8428004f397cdb56ee437d0b38c0670f14e77fa
diff --git a/src/space.h b/src/space.h
index d312365..7ebc654 100644
--- a/src/space.h
+++ b/src/space.h
@@ -83,6 +83,11 @@
return *image_header_;
}
+ const std::string& GetImageFilename() const {
+ CHECK(IsImageSpace());
+ return name_;
+ }
+
size_t AllocationSize(const Object* obj);
private: