mdp -> heapinfo[block].busy_block.size * BLOCKSIZE;
if(MC_is_active()){
- if(mdp->heapinfo[block].busy_block.ignore == 1)
+ if(mdp->heapinfo[block].busy_block.ignore > 0)
MC_remove_ignore_heap(ptr, mdp -> heapinfo[block].busy_block.busy_size);
}
abort();
}
mdp->heapinfo[block+it].type = -1;
- mdp->heapinfo[block+it].busy_block.ignore = 0;
-
}
block = i;
abort();
}
mdp->heapinfo[block+it].type = -1;
- mdp->heapinfo[block+it].busy_block.ignore = 0;
}
}
}
if(MC_is_active()){
- if(mdp->heapinfo[block].busy_frag.ignore[frag_nb] == 1)
+ if(mdp->heapinfo[block].busy_frag.ignore[frag_nb] > 0)
MC_remove_ignore_heap(ptr, mdp->heapinfo[block].busy_frag.frag_size[frag_nb]);
}
+
/* Set size used in the fragment to -1 */
mdp->heapinfo[block].busy_frag.frag_size[frag_nb] = -1;
mdp->heapinfo[block].busy_frag.ignore[frag_nb] = 0;
-
+ mdp->heapinfo[block].busy_frag.equal_to[frag_nb] = NULL;
+
// fprintf(stderr,"nfree:%zu capa:%d\n", mdp->heapinfo[block].busy_frag.nfree,(BLOCKSIZE >> type));
if (mdp->heapinfo[block].busy_frag.nfree ==
(BLOCKSIZE >> type) - 1) {
mdp->heapinfo[block].type = 0;
mdp->heapinfo[block].busy_block.size = 1;
mdp->heapinfo[block].busy_block.busy_size = 0;
- mdp->heapinfo[block].busy_block.ignore = 0;
+ mdp->heapinfo[block].busy_block.equal_to = NULL;
/* Keep the statistics accurate. */
mdp -> heapstats.chunks_used++;