Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Workaround hang at cleanup.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 16 Jan 2014 08:44:51 +0000 (09:44 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 16 Jan 2014 08:47:10 +0000 (09:47 +0100)
BTW, mmalloc_detach was renamed mmalloc_destroy in commit
907588ad7c14cc210e2f2a072b72bc1b91133ca0.

src/xbt/mmalloc/mm_module.c

index 01c0bce..6341fa8 100644 (file)
@@ -339,9 +339,9 @@ void *mmalloc_preinit(void)
 
 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);
-  xbt_mheap_destroy_no_free(__mmalloc_default_mdp);
+  /* Do not destroy the default mdp or ldl won't be able to free the memory it
+   * allocated since we're in memory */
+  // xbt_mheap_destroy_no_free(__mmalloc_default_mdp);
 }
 
 size_t mmalloc_get_bytes_used(xbt_mheap_t heap){