diff options
| -rw-r--r-- | runtime/mem_map.cc | 4 | ||||
| -rw-r--r-- | runtime/oat_file.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc index 421641ce39..5d89c21803 100644 --- a/runtime/mem_map.cc +++ b/runtime/mem_map.cc @@ -426,7 +426,9 @@ MemMap* MemMap::MapFileAtAddress(uint8_t* expected_ptr, if (error_msg != nullptr) { auto saved_errno = errno; - PrintFileToLog("/proc/self/maps", LogSeverity::WARNING); + if (kIsDebugBuild || VLOG_IS_ON(oat)) { + PrintFileToLog("/proc/self/maps", LogSeverity::WARNING); + } *error_msg = StringPrintf("mmap(%p, %zd, 0x%x, 0x%x, %d, %" PRId64 ") of file '%s' failed: %s. See process maps in the log.", diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc index 7c83715ff5..c60962b0d0 100644 --- a/runtime/oat_file.cc +++ b/runtime/oat_file.cc @@ -173,7 +173,7 @@ bool OatFileBase::ComputeFields(uint8_t* requested_base, } if (requested_base != nullptr && begin_ != requested_base) { // Host can fail this check. Do not dump there to avoid polluting the output. - if (kIsTargetBuild) { + if (kIsTargetBuild && (kIsDebugBuild || VLOG_IS_ON(oat))) { PrintFileToLog("/proc/self/maps", LogSeverity::WARNING); } *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: " |