]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/mmalloc/mm_interface.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another attempt at PRELOADing mmalloc (WIP)
[simgrid.git] / src / xbt / mmalloc / mm_interface.c
index 030a250e78f310ce6ceb5be7dc112636c49b782e..5f03243556fe8736302b272bc5b4667d3a23a115 100644 (file)
    not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include "mmprivate.h"
 #include <fcntl.h> /* After sys/types.h, at least for dpx/2.  */
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
+#include "mmprivate.h"
+
 // This is the underlying implementation of mmalloc_get_bytes_used_remote.
 // Is it used directly to evaluate the bytes used from a different process.
 size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapinfo)
@@ -50,9 +51,3 @@ size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapin
   }
   return bytes;
 }
-
-__attribute__((weak)) xbt_mheap_t mmalloc_get_current_heap(void)
-{
-  fprintf(stderr, "Fake mmalloc_get_current_heap()\n");
-  return NULL;
-}
\ No newline at end of file