X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a18fb7c6c81b1f58a9f8111fcf0ade106c4746b..eb284828d592ce39bd4b96f084d7cce1d074d4b1:/src/xbt/mmalloc/mmprivate.h diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index 28dea9d787..d2e2331792 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -93,8 +93,10 @@ typedef union { size_t nfree; /* Free fragments in a fragmented block. */ size_t first; /* First free fragment of the block. */ } frag; - /* Size (in blocks) of a large cluster. */ - size_t size; + struct { + size_t size; /* Size (in blocks) of a large cluster. */ + size_t busy_size; + } block; } info; } busy; /* Heap information for a free block (that may be the first of @@ -267,9 +269,11 @@ struct mdesc { }; -int mmalloc_compare_heap(void *h1, void *h2); +int mmalloc_compare_heap(void *h1, void *h2, void *std_heap_addr); + +int mmalloc_compare_mdesc(struct mdesc *mdp1, struct mdesc *mdp2, void *std_heap_addr); -int mmalloc_compare_mdesc(struct mdesc *mdp1, struct mdesc *mdp2); +void mmalloc_display_info(void *h); /* Bits to look at in the malloc descriptor flags word */