OSDN Git Service

ART: Enforce arena alignment in Realloc
authorAndreas Gampe <agampe@google.com>
Sat, 20 Aug 2016 03:22:19 +0000 (20:22 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 20 Aug 2016 03:45:04 +0000 (20:45 -0700)
commitf6dd829292b451a0eaaf339964fcf9ebc804897b
treef266ae41051125f4fea558bbfa87c617f9d5ac9b
parentda0f5e72cc5f2747a330b21afa34e7d798fc5c54
ART: Enforce arena alignment in Realloc

Enforce the expected alignment in Realloc when the given buffer
can be expanded.

Add debug checks to prove alignment guarantees.

Change-Id: I7dbaf3ca0896f714cff07ff08f067a7c088a6c8d
Test: m test-art-host
runtime/base/arena_allocator.cc
runtime/base/arena_allocator.h