summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-16 11:27:54 -0700
committerDave Barach <openvpp@barachs.net>2019-07-03 18:34:31 +0000
commitf2f89a76e4f36c42b2850438936ee16d6651984a (patch)
tree4866cec27cb20d0e2f7e9d26b6d8f429c97008c3 /src/vppinfra
parent8851934da46cc9175d2069c49ef873304be45022 (diff)
dlmalloc: honor 8 byte alignment requests
Change-Id: Ie504603c2e42cae3ad592952b2b166919420e5f7 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit f5dc9fbf814865b31b52b20f5bf959e9ff818b25)
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/dlmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/dlmalloc.c b/src/vppinfra/dlmalloc.c
index 2a40eeb7f5b..524c57b210b 100644
--- a/src/vppinfra/dlmalloc.c
+++ b/src/vppinfra/dlmalloc.c
@@ -4182,7 +4182,7 @@ void* mspace_get_aligned (mspace msp,
/*
* 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);
if (rv == 0)
return rv;