diff options
author | 2018-10-16 13:44:50 -0700 | |
---|---|---|
committer | 2018-10-16 13:50:30 -0700 | |
commit | 3008ea400aab385e67ca53c16b30988fda5c5dcb (patch) | |
tree | 6977eed58121b0c4ecddfb688663bf8fd3b2e192 | |
parent | f4fd65e393fe60f17e22ee7823f8dce4594c053d (diff) |
Dump heap spaces for heap corruption
Aim to get more insight into invalid addresses.
Bug: 117803941
Test: test-art-host
Change-Id: Ie31eb3a78c505cdea3d6eb97233fc73097b40b81
-rw-r--r-- | runtime/gc/verification.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc/verification.cc b/runtime/gc/verification.cc index 2c31c65514..0281eeedb9 100644 --- a/runtime/gc/verification.cc +++ b/runtime/gc/verification.cc @@ -88,6 +88,7 @@ void Verification::LogHeapCorruption(ObjPtr<mirror::Object> holder, // Lowest priority logging first: PrintFileToLog("/proc/self/maps", android::base::LogSeverity::FATAL_WITHOUT_ABORT); MemMap::DumpMaps(LOG_STREAM(FATAL_WITHOUT_ABORT), /* terse */ true); + Runtime::Current()->GetHeap()->DumpSpaces(LOG_STREAM(FATAL_WITHOUT_ABORT)); // Buffer the output in the string stream since it is more important than the stack traces // and we want it to have log priority. The stack traces are printed from Runtime::Abort // which is called from LOG(FATAL) but before the abort message. |