diff options
| author | 2014-08-05 02:56:06 +0000 | |
|---|---|---|
| committer | 2014-08-05 00:35:38 +0000 | |
| commit | b5c5646b5ffd3d451af5e8d52b50743bf61d4c40 (patch) | |
| tree | 32340767bc568f75b7148b5ba40aa1d1e57a7636 | |
| parent | c52361cfaae8be2fbaa25b175d4f6c37d4110764 (diff) | |
| parent | 422f4733ce76eda8f4ebb5a3dce5c0a5a2264886 (diff) | |
Merge "Use the uncached form of BacktraceMap::Create."
| -rw-r--r-- | runtime/mem_map.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc index 1074253fea..438bee9948 100644 --- a/runtime/mem_map.cc +++ b/runtime/mem_map.cc @@ -153,9 +153,9 @@ static bool CheckMapRequest(byte* expected_ptr, void* actual_ptr, size_t byte_co uintptr_t expected = reinterpret_cast<uintptr_t>(expected_ptr); uintptr_t limit = expected + byte_count; - std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid())); - if (!map->Build()) { - *error_msg << StringPrintf("Failed to build process map to determine why mmap returned " + std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); + if (map.get() == NULL) { + *error_msg << StringPrintf("Failed to create process map to determine why mmap returned " "0x%08" PRIxPTR " instead of 0x%08" PRIxPTR, actual, expected); return false; |