Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / src / xbt / mmalloc / mm_interface.c
index 030a250..967bf2f 100644 (file)
@@ -1,6 +1,6 @@
 /* External interface to a mmap'd malloc managed region. */
 
-/* Copyright (c) 2012-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2012-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
    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