- LOCK(__mmalloc_current_heap);
- mfree(__mmalloc_current_heap, p);
- UNLOCK(__mmalloc_current_heap);
-}
-#endif
-
-/* Make sure it works with md==NULL */
-
-#define HEAP_OFFSET (128<<20) /* Safety gap from the heap's break address.
- * Try to increase this first if you experience
- * strange errors under valgrind. */
-
-void *mmalloc_get_default_md(void)
-{
- xbt_assert(__mmalloc_default_mdp);
- return __mmalloc_default_mdp;
-}
-
-static void mmalloc_fork_prepare(void)
-{
- if (__mmalloc_default_mdp)
- LOCK(__mmalloc_default_mdp);
-}