summaryrefslogtreecommitdiffstats
path: root/runtime/native
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-05-19 16:50:20 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-19 16:50:21 +0000
commit84e524207b23d58a1b1e5f4443000ccac97c4184 (patch)
tree6eb6204994d342a653fba4eea275a536a720b036 /runtime/native
parentf04544ffdb801946d087ae1322c890e34e185156 (diff)
parent0e12bdc49744eb6d5c29b9611a8dbe10bac4cd53 (diff)
downloadart-84e524207b23d58a1b1e5f4443000ccac97c4184.zip
art-84e524207b23d58a1b1e5f4443000ccac97c4184.tar.gz
art-84e524207b23d58a1b1e5f4443000ccac97c4184.tar.bz2
Merge "Add ISA directory to image and odex pathnames."
Diffstat (limited to 'runtime/native')
-rw-r--r--runtime/native/dalvik_system_DexFile.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/native/dalvik_system_DexFile.cc b/runtime/native/dalvik_system_DexFile.cc
index 5353592..27f19a7 100644
--- a/runtime/native/dalvik_system_DexFile.cc
+++ b/runtime/native/dalvik_system_DexFile.cc
@@ -115,7 +115,9 @@ static jlong DexFile_openDexFileNative(JNIEnv* env, jclass, jstring javaSourceNa
if (outputName.c_str() == nullptr) {
// FindOrCreateOatFileForDexLocation can tolerate a missing dex_location_checksum
dex_file = linker->FindDexFileInOatFileFromDexLocation(sourceName.c_str(),
- dex_location_checksum_pointer, &error_msgs);
+ dex_location_checksum_pointer,
+ kRuntimeISA,
+ &error_msgs);
} else {
// FindOrCreateOatFileForDexLocation requires the dex_location_checksum
if (dex_location_checksum_pointer == NULL) {
@@ -387,7 +389,7 @@ static jboolean IsDexOptNeededInternal(JNIEnv* env, const char* filename,
const InstructionSet target_instruction_set = GetInstructionSetFromString(instruction_set);
// Check if we have an odex file next to the dex file.
- std::string odex_filename(OatFile::DexFilenameToOdexFilename(filename));
+ std::string odex_filename(DexFilenameToOdexFilename(filename, kRuntimeISA));
std::string error_msg;
UniquePtr<const OatFile> oat_file(OatFile::Open(odex_filename, odex_filename, NULL, false,
&error_msg));