OSDN Git Service

ART: Fix arena allocation for valgrind.
authorVladimir Marko <vmarko@google.com>
Tue, 10 Nov 2015 20:54:22 +0000 (20:54 +0000)
committerVladimir Marko <vmarko@google.com>
Wed, 11 Nov 2015 17:53:28 +0000 (17:53 +0000)
commit75001934af9fa3f2538f564bb4073d711809f1ff
treec683f7e8fa0b3561b60668bfcf05b898cb793ac3
parent54af9bd45a482376b5fe8d4ac291afb5bc950065
ART: Fix arena allocation for valgrind.

Move the zero-initialization check after marking the newly
allocated chunk as defined and check only the allocated
space without the red zone. Also mark unallocated space as
inaccessible instead of just undefined.

Change-Id: I74fc65f5b53acb74cec4e5a0146f41dacf4a1470
runtime/base/arena_allocator.cc
runtime/base/scoped_arena_allocator.cc