int type; /* 0: busy large block
>0: busy fragmented (fragments of size 2^type bytes)
<0: free block */
-
+
union {
/* Heap information for a busy block. */
struct {
#define LOCK(mdp) pthread_mutex_lock(&mdp->mutex)
#define UNLOCK(mdp) pthread_mutex_unlock(&mdp->mutex)
-static inline void mmalloc_paranoia(struct mdesc *mdp){
-
- /* nothing to fear for no */
-
-}
-
static inline int mmalloc_get_increment(malloc_info* heapinfo) {
if (heapinfo->type < 0) {
return heapinfo->free_block.size;
}
}
-XBT_PRIVATE void mmcheck(xbt_mheap_t heap);
-
XBT_PRIVATE int malloc_use_mmalloc(void);
XBT_PRIVATE int mmalloc_exec_using_mm(int argc, const char** argv);