-void *mmalloc_get_default_md(void) {
- xbt_assert(__mmalloc_default_mdp);
- return __mmalloc_default_mdp;
-}
-
-/* Initialize the default malloc descriptor. */
-void mmalloc_preinit(void) {
- if(!__mmalloc_default_mdp) __mmalloc_default_mdp = mmalloc_attach(-1, (char *)sbrk(0) + HEAP_OFFSET);
- xbt_assert(__mmalloc_default_mdp != NULL);
-}
-void mmalloc_postexit(void) {
- /* Do not detach the default mdp or ldl won't be able to free the memory it allocated since we're in memory */
- // mmalloc_detach(__mmalloc_default_mdp);
-}