aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/dlmalloc.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-16 11:27:54 -0700
committerDave Barach <openvpp@barachs.net>2019-04-16 21:21:44 +0000
commitf5dc9fbf814865b31b52b20f5bf959e9ff818b25 (patch)
tree115307bfd86e7071a85a4a1d20e027ffc1ca191b /src/vppinfra/dlmalloc.c
parente60dfd7acaae0e6bc8eaeb7d1cc75755d4cf01bc (diff)
dlmalloc: honor 8 byte alignment requests
Change-Id: Ie504603c2e42cae3ad592952b2b166919420e5f7 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra/dlmalloc.c')
-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 53caa3fc3c6..60bd8d55646 100644
--- a/src/vppinfra/dlmalloc.c
+++ b/src/vppinfra/dlmalloc.c
@@ -4173,7 +4173,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;