Fix image not regenerating on changes to bootclasspath
Bug: 16367410
Change-Id: I10e81d068ffc2ab712a287f88ef67f6a1be4df4c
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc
index 883e1c1f..42089af 100644
--- a/runtime/gc/space/image_space.cc
+++ b/runtime/gc/space/image_space.cc
@@ -337,9 +337,11 @@
relocated_version_used = true;
} else {
image_filename = &system_filename;
+ is_system = true;
}
} else if (has_system) {
image_filename = &system_filename;
+ is_system = true;
} else {
CHECK(has_cache);
image_filename = &cache_filename;
@@ -355,7 +357,7 @@
LOG(INFO) << "Using image file " << image_filename->c_str() << " for image location "
<< image_location;
space = ImageSpace::Init(image_filename->c_str(), image_location,
- false, &error_msg);
+ !is_system, &error_msg);
}
if (space != nullptr) {
return space;