summaryrefslogtreecommitdiffstats
path: root/runtime/gc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2015-05-01 11:50:24 -0700
committerMathieu Chartier <mathieuc@google.com>2015-05-01 13:37:52 -0700
commit3bf2d475f0f1d1c2d292714b48a1ccb9c9eadac2 (patch)
treea69b094cd418769166257f1e78503db0d86ee052 /runtime/gc
parent732e886df618f8f8f67a184da3bf079aec22eca5 (diff)
downloadart-3bf2d475f0f1d1c2d292714b48a1ccb9c9eadac2.zip
art-3bf2d475f0f1d1c2d292714b48a1ccb9c9eadac2.tar.gz
art-3bf2d475f0f1d1c2d292714b48a1ccb9c9eadac2.tar.bz2
Print memory maps on GC crash.
Bug: 20557050 (cherry picked from commit d38ec80b163af1639fbaae382a319c73be67c560) Change-Id: I0fc35bace77b11181f06199c121bc4e246d02100
Diffstat (limited to 'runtime/gc')
-rw-r--r--runtime/gc/collector/mark_sweep.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/collector/mark_sweep.cc b/runtime/gc/collector/mark_sweep.cc
index c6d2861..1068e90 100644
--- a/runtime/gc/collector/mark_sweep.cc
+++ b/runtime/gc/collector/mark_sweep.cc
@@ -384,6 +384,8 @@ class MarkSweepMarkObjectSlowPath {
LOG(INTERNAL_FATAL) << "Tried to mark " << obj << " not contained by any spaces";
LOG(INTERNAL_FATAL) << "Attempting see if it's a bad root";
mark_sweep_->VerifyRoots();
+ PrintFileToLog("/proc/self/maps", LogSeverity::INTERNAL_FATAL);
+ MemMap::DumpMaps(LOG(INTERNAL_FATAL));
LOG(FATAL) << "Can't mark invalid object";
}
}