OSDN Git Service

Avoid adding region space bitmap to heap bitmap
authorMathieu Chartier <mathieuc@google.com>
Thu, 16 Feb 2017 02:06:39 +0000 (18:06 -0800)
committerMathieu Chartier <mathieuc@google.com>
Thu, 16 Feb 2017 02:13:37 +0000 (02:13 +0000)
commitfdb7d5d882a5f18326746cd92e83473be48231eb
tree3755a653ddc638f5484ea628d6bac68f1f5cac46
parent4caf20398382daf8e41649fb4840f8d2e945dc12
Avoid adding region space bitmap to heap bitmap

Adding the bitmap here really served no purpose and caused
VisitObjects to visit region space bitmap objects twice. This had
unwanted results like adding objects to hprof dumps twice.

Regression test is covered by DCHECK in hprof and test 130.

Test: N6P boot and test-art-host

Bug: 34967844
Change-Id: I53a6075d577430089bb42f84a3c80c1cc5302206
runtime/gc/heap.cc
runtime/hprof/hprof.cc