OSDN Git Service

linker: align allocated blocks to 16 bytes
authorDimitry Ivanov <dimitry@google.com>
Thu, 21 Jan 2016 18:55:40 +0000 (10:55 -0800)
committerDimitry Ivanov <dimitry@google.com>
Thu, 21 Jan 2016 22:28:33 +0000 (14:28 -0800)
commit3edc5c41bbee7cf608a781e7056599f32ca1949c
tree88b26c5a450fb4548479c109a68253e7a41c07e8
parent8d6e19408cfdbd73ba7e5c9e5b8716d9dad8dcf9
linker: align allocated blocks to 16 bytes

C/C++ requires the result of malloc/new to be
aligned for any primitive type.

Change-Id: I715b7679e738f34b3b409993fb3ef242e1321b7f
linker/linker_allocator.cpp
linker/linker_allocator.h
linker/linker_block_allocator.cpp
linker/tests/linker_block_allocator_test.cpp
linker/tests/linker_memory_allocator_test.cpp