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:03:32 +0000 (17:03 -0700)
commit36dab3607e77505ce139eacef1c62a1c4bc4affd
tree4b8fa4da5aef0bd4f7340d33f2d6649ba2089b5a
parent01a0ebb6b96c32879dcad99d515fc0cd8de2a266
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
Change-Id: Ibe18198d05ff353fbb57d10b2f7719fdcbf1c5f0
runtime/debugger.cc
runtime/gc/heap.cc