]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Setup correct minimum malloc'd block size for MIPS.
authorPetar Jovanovic <mips32r2@gmail.com>
Sat, 15 Sep 2012 01:04:06 +0000 (01:04 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Sat, 15 Sep 2012 01:04:06 +0000 (01:04 +0000)
Correct minimum malloc's block size for MIPS is 8.
This fixes massif/tests/big-alloc.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12974

coregrind/pub_core_mallocfree.h

index 3349b2bf0551b64c9af3e96ffb793eee07a19351..7cd9536d60490d12f220193da2b21ccd42dca573 100644 (file)
@@ -70,7 +70,8 @@ typedef Int ArenaId;
 // minimum alignment.  Must be a power of 2 greater than 4, and should be
 // greater than 8.
 #if   defined(VGP_x86_linux)   || \
-      defined(VGP_arm_linux)
+      defined(VGP_arm_linux)   || \
+      defined(VGP_mips32_linux)
 #  define VG_MIN_MALLOC_SZB        8
 // Nb: We always use 16 bytes for Darwin, even on 32-bits, so it can be used
 // for any AltiVec- or SSE-related type.  This matches the Darwin libc.
@@ -80,7 +81,6 @@ typedef Int ArenaId;
       defined(VGP_ppc32_linux) || \
       defined(VGP_ppc64_linux) || \
       defined(VGP_s390x_linux) || \
-      defined(VGP_mips32_linux) || \
       defined(VGP_x86_darwin)  || \
       defined(VGP_amd64_darwin)
 #  define VG_MIN_MALLOC_SZB       16