diff options
| author | 2012-01-12 22:04:31 -0800 | |
|---|---|---|
| committer | 2012-01-12 22:04:31 -0800 | |
| commit | 9ec5a97ce1bb7a1baaf2af2f8049f16d1fafb749 (patch) | |
| tree | a03f93986f90cb860ac1972ddb0d97e73c2616ac | |
| parent | 4004b36bf6dfae095092ed4579c5ad6e4198fc30 (diff) | |
| parent | 850162c870d99037c0287d4335e90326a4fc2df3 (diff) | |
Merge "Include the name of the source when extracting classes.dex in memory." into dalvik-dev
| -rw-r--r-- | src/dex_file.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dex_file.cc b/src/dex_file.cc index e59926829c..31a7d1007c 100644 --- a/src/dex_file.cc +++ b/src/dex_file.cc @@ -144,10 +144,9 @@ const DexFile* DexFile::Open(const ZipArchive& zip_archive, const std::string& l } uint32_t length = zip_entry->GetUncompressedLength(); - UniquePtr<MemMap> map(MemMap::MapAnonymous("classes.dex extracted in memory", - NULL, - length, - PROT_READ | PROT_WRITE)); + std::string name("classes.dex extracted in memory from "); + name += location; + UniquePtr<MemMap> map(MemMap::MapAnonymous(name.c_str(), NULL, length, PROT_READ | PROT_WRITE)); if (map.get() == NULL) { LOG(ERROR) << "mmap classes.dex for \"" << location << "\" failed"; return NULL; |