summaryrefslogtreecommitdiffstats
path: root/runtime/gc
diff options
context:
space:
mode:
authorRichard Uhler <ruhler@google.com>2015-03-18 08:21:11 -0700
committerRichard Uhler <ruhler@google.com>2015-03-24 12:48:09 -0700
commite5fed03772144595c0904faf3d6974cc55214c8c (patch)
tree27c242e48cabd2543f472930d1ad7e2ab86557fe /runtime/gc
parentb93581f857e36a62f690e26e78167f2abea0f033 (diff)
downloadart-e5fed03772144595c0904faf3d6974cc55214c8c.zip
art-e5fed03772144595c0904faf3d6974cc55214c8c.tar.gz
art-e5fed03772144595c0904faf3d6974cc55214c8c.tar.bz2
Support relative encoded dex locations in oat files.
Now when opening an oat file, the caller can pass an absolute dex location used to resolve the absolute path for any relative encoded dex locations in the oat file. Bug: 19550105 Change-Id: I6e9559afe4d86ac12cf0b90176b5ea696a83d0e7
Diffstat (limited to 'runtime/gc')
-rw-r--r--runtime/gc/space/image_space.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc
index 14f770d..1fb3252 100644
--- a/runtime/gc/space/image_space.cc
+++ b/runtime/gc/space/image_space.cc
@@ -788,7 +788,8 @@ OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg)
OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(),
image_header.GetOatFileBegin(),
- !Runtime::Current()->IsAotCompiler(), error_msg);
+ !Runtime::Current()->IsAotCompiler(),
+ nullptr, error_msg);
if (oat_file == NULL) {
*error_msg = StringPrintf("Failed to open oat file '%s' referenced from image %s: %s",
oat_filename.c_str(), GetName(), error_msg->c_str());