summaryrefslogtreecommitdiffstats
path: root/runtime/gc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-03-05 14:41:03 -0800
committerMathieu Chartier <mathieuc@google.com>2014-03-05 15:02:18 -0800
commitc7cb1901b776129044a4ad3886fd6450e83df681 (patch)
tree611c648c250ac7e84ac7079fe000b7ce76d50685 /runtime/gc
parentc8554361e89970ab92a94d1f719553a30d45b86c (diff)
downloadart-c7cb1901b776129044a4ad3886fd6450e83df681.zip
art-c7cb1901b776129044a4ad3886fd6450e83df681.tar.gz
art-c7cb1901b776129044a4ad3886fd6450e83df681.tar.bz2
Print error message if ImageSpace::Init fails.
Also changed some of the args in mem_map.cc to print as hex. Bug: 13323732 Change-Id: I02cd81300793515d143e94473f48fc701e401b38
Diffstat (limited to 'runtime/gc')
-rw-r--r--runtime/gc/space/image_space.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc
index 8426fab..ca5b5a9 100644
--- a/runtime/gc/space/image_space.cc
+++ b/runtime/gc/space/image_space.cc
@@ -115,6 +115,8 @@ ImageSpace* ImageSpace::Create(const char* original_image_file_name) {
space::ImageSpace* image_space = ImageSpace::Init(image_file_name.c_str(), true, &error_msg);
if (image_space != nullptr) {
return image_space;
+ } else {
+ LOG(WARNING) << error_msg;
}
}
CHECK(GenerateImage(image_file_name, &error_msg))