dlmalloc: honor 8 byte alignment requests

Change-Id: Ie504603c2e42cae3ad592952b2b166919420e5f7
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit f5dc9fbf814865b31b52b20f5bf959e9ff818b25)
This commit is contained in:
Florin Coras
2019-04-16 11:27:54 -07:00
committed by Dave Barach
parent 8851934da4
commit f2f89a76e4

View File

@ -4182,7 +4182,7 @@ void* mspace_get_aligned (mspace msp,
/* /*
* Alignment requests less than the size of an mmx vector are ignored * Alignment requests less than the size of an mmx vector are ignored
*/ */
if (align < 16) { if (align < sizeof (uword)) {
rv = mspace_malloc (msp, n_user_data_bytes); rv = mspace_malloc (msp, n_user_data_bytes);
if (rv == 0) if (rv == 0)
return rv; return rv;