diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2015-05-01 11:50:24 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-05-01 13:37:52 -0700 |
commit | 3bf2d475f0f1d1c2d292714b48a1ccb9c9eadac2 (patch) | |
tree | a69b094cd418769166257f1e78503db0d86ee052 /runtime/gc | |
parent | 732e886df618f8f8f67a184da3bf079aec22eca5 (diff) | |
download | art-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.cc | 2 |
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"; } } |