summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2017-05-19 14:33:57 -0700
committer Mathieu Chartier <mathieuc@google.com> 2017-05-19 15:10:16 -0700
commit96f4c3cd9cb0f46ad41c3ffb45998c8e69e3ada8 (patch)
treeb4a5001bef59e15ab8c8ba938add771ea48e4444
parentde31d084f7d64c94911aef927798559d39759f95 (diff)
Use DumpObjectInfo in CheckPreconditionsForAllocObject
Try to get some insight in the corrupted class that shows up in test 145. Bug: 37885600 Test: m Change-Id: I94c5c158247da5d6e6217aaa78f3d5c2619650d3
-rw-r--r--runtime/gc/heap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index 668fb4b7e4..9c1a03171b 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -4013,7 +4013,7 @@ void Heap::CheckPreconditionsForAllocObject(ObjPtr<mirror::Class> c, size_t byte
<< " IsVariableSize=" << c->IsVariableSize()
<< " ObjectSize=" << c->GetObjectSize()
<< " sizeof(Class)=" << sizeof(mirror::Class)
- << " klass=" << c.Ptr();
+ << verification_->DumpObjectInfo(c.Ptr(), /*tag*/ "klass");
CHECK_GE(byte_count, sizeof(mirror::Object));
}