OSDN Git Service

Add support for bump pointer spaces to DdmSendHeapSegments.
authorMathieu Chartier <mathieuc@google.com>
Wed, 30 Jul 2014 21:59:56 +0000 (14:59 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 31 Jul 2014 00:18:37 +0000 (17:18 -0700)
commit6bff7130878128c9836a21ae58d0cfdb0075b1b5
tree1c469cba68c5d3e6b2316e8803b40d269c72c5f6
parentc7c6d18a90079b67a7592d3f2cb3d4c6f0081512
Add support for bump pointer spaces to DdmSendHeapSegments.

Added support for bump pointer spaces as well as
differentiating between DlMallocSpaces and RosAllocSpaces.
Added logic to reset the start of next chunk to prevent
inbetween space regions counted as free.

Fixed a debug build bug where we were doing an mprotect after
creating a rosalloc space. In debug builds, this writes a magic
value in the page. This was faulting since it was set to PROT_NONE.
The fix moves the mprotect before the RosAlloc space creation.

Bug: 16408851

(cherry picked from commit 36dab3607e77505ce139eacef1c62a1c4bc4affd)

Change-Id: I5095feb01fa7e248178a2833da7f821f4fd52c89
runtime/debugger.cc
runtime/gc/heap.cc