From: Gabriel Corona Date: Mon, 13 Oct 2014 09:55:31 +0000 (+0200) Subject: [mmalloc] Expand the junkarea X-Git-Tag: v3_12~732^2~288^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ba47a6e79e641cb561e568af6c1b80e2c5ae5a97?hp=e4731140e441bec9672fe8ab3b4499526b87316f [mmalloc] Expand the junkarea In some cases (Fortran + Clang compilation) this is needed. We nee to fix this more cleanly. --- diff --git a/src/xbt/mmalloc/mm_legacy.c b/src/xbt/mmalloc/mm_legacy.c index ecf09bbbc2..20a609a3e0 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 (32 * 1024 / JUNK_SIZE) +#define MAX_JUNK_AREAS (64 * 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 */