- int equal, res_compare;
-
- ignore_done = 0;
-
- /* Init equal information */
- i1 = 1;
-
- while(i1<=heaplimit){
- if(heapinfo1[i1].type == 0){
- if(heapinfo1[i1].busy_block.busy_size > 0)
- nb_block1++;
- heapinfo1[i1].busy_block.equal_to = NULL;
- }
- if(heapinfo1[i1].type > 0){
- for(j1=0; j1 < (size_t) (BLOCKSIZE >> heapinfo1[i1].type); j1++){
- if(heapinfo1[i1].busy_frag.frag_size[j1] > 0)
- nb_frag1++;
- heapinfo1[i1].busy_frag.equal_to[j1] = NULL;
- }
- }
- i1++;
- }
-
- i2 = 1;
-
- while(i2<=heaplimit){
- if(heapinfo2[i2].type == 0){
- if(heapinfo2[i2].busy_block.busy_size > 0)
- nb_block2++;
- heapinfo2[i2].busy_block.equal_to = NULL;
- }
- if(heapinfo2[i2].type > 0){
- for(j2=0; j2 < (size_t) (BLOCKSIZE >> heapinfo2[i2].type); j2++){
- if(heapinfo2[i2].busy_frag.frag_size[j2] > 0)
- nb_frag2++;
- heapinfo2[i2].busy_frag.equal_to[j2] = NULL;
- }
- }
- i2++;
- }
-
- if(nb_block1 != nb_block2 || nb_frag1 != nb_frag2){
- XBT_DEBUG("Different number of busy blocks (%d - %d) or busy fragments (%d - %d)", nb_block1, nb_block2, nb_frag1, nb_frag2);
- return 1;
- }