dlmalloc: honor 8 byte alignment requests 40/18940/2
authorFlorin Coras <fcoras@cisco.com>
Tue, 16 Apr 2019 18:27:54 +0000 (11:27 -0700)
committerDave Barach <openvpp@barachs.net>
Tue, 16 Apr 2019 21:21:44 +0000 (21:21 +0000)
Change-Id: Ie504603c2e42cae3ad592952b2b166919420e5f7
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vppinfra/dlmalloc.c

index 53caa3f..60bd8d5 100644 (file)
@@ -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;