Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mmalloc] Expand the junkarea
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 13 Oct 2014 09:55:31 +0000 (11:55 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 13 Oct 2014 09:55:31 +0000 (11:55 +0200)
In some cases (Fortran + Clang compilation) this is needed. We nee to
fix this more cleanly.

src/xbt/mmalloc/mm_legacy.c

index ecf09bb..20a609a 100644 (file)
@@ -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 */