Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move a global definition so that we can kill the sbrk stuff: we'll never use it
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 1 Feb 2012 14:47:45 +0000 (15:47 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 1 Feb 2012 14:47:45 +0000 (15:47 +0100)
src/xbt/mmalloc/mm_legacy.c
src/xbt/mmalloc/sbrk-sup.c

index f520762..105dc0a 100644 (file)
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_mm_legacy, xbt,
                                 "Logging specific to mm_legacy in mmalloc");
 
+/* The mmalloc() package can use a single implicit malloc descriptor
+   for mmalloc/mrealloc/mfree operations which do not supply an explicit
+   descriptor.  This allows mmalloc() to provide
+   backwards compatibility with the non-mmap'd version. */
+struct mdesc *__mmalloc_default_mdp;
+
+
 static void *__mmalloc_current_heap = NULL;     /* The heap we are currently using. */
 
 #include "xbt_modinter.h"
index 522cbfc..40638c9 100644 (file)
@@ -20,13 +20,6 @@ static void *sbrk_morecore(struct mdesc *mdp, int size);
 extern void *sbrk(int size);
 #endif
 
-/* The mmalloc() package can use a single implicit malloc descriptor
-   for mmalloc/mrealloc/mfree operations which do not supply an explicit
-   descriptor.  For these operations, sbrk() is used to obtain more core
-   from the system, or return core.  This allows mmalloc() to provide
-   backwards compatibility with the non-mmap'd version. */
-
-struct mdesc *__mmalloc_default_mdp;
 
 /* Use sbrk() to get more core. */