Dump heap spaces for heap corruption

Aim to get more insight into invalid addresses.

Bug: 117803941
Test: test-art-host
Change-Id: Ie31eb3a78c505cdea3d6eb97233fc73097b40b81
diff --git a/runtime/gc/verification.cc b/runtime/gc/verification.cc
index 2c31c65..0281eee 100644
--- a/runtime/gc/verification.cc
+++ b/runtime/gc/verification.cc
@@ -88,6 +88,7 @@
   // 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.