OSDN Git Service

Verify there's no mem map gap for immune region not to break.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 4 Jun 2014 18:43:59 +0000 (11:43 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 4 Jun 2014 22:50:46 +0000 (15:50 -0700)
commit3eed93dd5be03e5539827bebf0f414251a12e15e
tree186fa74420e2595c9b6fba9ea8de94756af9cef5
parentbbdc5bc5fd5141711879a6c85d80ac45b7aad5d0
Verify there's no mem map gap for immune region not to break.

This adds code that verifies that there's no memory map gap between
the image space and the main space so that the immune region
functionality won't silently break. For example, if there's a gap and
a large object is allocated in that gap, the large object is
incorrectly part of the immune region and the marking breaks.

Bug: 14059466
Change-Id: Ie6ed82988d74b6d0562ebbbaac96ee43c15b14a6
runtime/base/mutex.cc
runtime/base/mutex.h
runtime/gc/heap.cc
runtime/mem_map.cc
runtime/mem_map.h
runtime/mem_map_test.cc