From: Arnaud Giersch Date: Thu, 12 Jun 2014 09:30:31 +0000 (+0200) Subject: Increase size of junk area to 32 KiB in mm_legacy.c. X-Git-Tag: v3_12~980 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b5563937fe21a176f07b2aa3c305c51e89b849ea?hp=9c5fcb22fadba8e6b7a67202dbb4789e728b2a49 Increase size of junk area to 32 KiB in mm_legacy.c. It is apparently needed when running Fortran tests through tesh.pl. --- diff --git a/src/xbt/mmalloc/mm_legacy.c b/src/xbt/mmalloc/mm_legacy.c index 5fbdb042f7..3c8e30178c 100644 --- a/src/xbt/mmalloc/mm_legacy.c +++ b/src/xbt/mmalloc/mm_legacy.c @@ -57,7 +57,7 @@ static void mm_gnuld_legacy_init(void) { /* This function is called from mmalloc */ static int allocated_junk = 0; /* keep track of many blocks of our little area was already given to someone */ #define JUNK_SIZE 8 -#define MAX_JUNK_AREAS (3*4096/JUNK_SIZE) +#define MAX_JUNK_AREAS (32 * 1024 / JUNK_SIZE) static char junkareas[MAX_JUNK_AREAS][JUNK_SIZE]; /* This version use mmalloc if there is a current heap, or the legacy implem if not */