OSDN Git Service

Fix a SIGSEGV at background-to-foreground collector transition.
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 7 Aug 2014 17:27:17 +0000 (10:27 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Fri, 8 Aug 2014 00:18:49 +0000 (17:18 -0700)
commite0d6421cdb42508f4d36f28cc9eddc31271bb37a
tree05b33d6d9dacc0a91d822b5924aed27e8a112ec7
parentfa9c8ec37c66574654e448513e1bb59af7cb9365
Fix a SIGSEGV at background-to-foreground collector transition.

The mem map that's used to create the backup main rosalloc space is
set to PROT_NONE by the compaction and the rosalloc space creation
attempts to write the debug magic number in the first page.

This is a debug build only issue.

Cherry pick commit c1276c838d1d0896048b8c14458432b94274e869.

Bug: 16854263
Change-Id: Ide2545d92bcafd3a095ac7f0c89c5b43d6dd78de
runtime/gc/heap.cc