eina_mempool: change default memory alignment from 2 to 4 61/211661/1 accepted/tizen/unified/20190808.223049 submit/tizen/20190808.015309
authorWooHyun Jung <wh0705.jung@samsung.com>
Thu, 8 Aug 2019 00:49:15 +0000 (09:49 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Thu, 8 Aug 2019 00:49:15 +0000 (09:49 +0900)
commit12ebb4f4175dc1404b4bf16cf4506842e954713d
tree17b128f9c6487c604d9365d7e3d6e0551db962eb
parent5446f0fa19ca62d60c40029383db6601995603c5
eina_mempool: change default memory alignment from 2 to 4

This patch is still in review.
https://phab.enlightenment.org/D9520/

If the patch would be modified while reviewing, this patch
should be reverted and the reviewed one needs to be updated.

[Summary]
SIGBUS error occurs on ARM devices. ELM_LAYOUT_MIXIN inherited class data size
is not a multiple of 4, because sizeof(Elm_Layout_Data) is 1 and
eina_mempool_alignof return 2 with size less than 4 which means data_offset
is a * m + 2.

@tizen_fix

Change-Id: I2c25d14def886f4d2ccb0b775ea540c9d41b8c9e
src/lib/eina/eina_inline_mempool.x