From: Gabriel Corona Date: Tue, 26 Aug 2014 11:27:22 +0000 (+0200) Subject: [mc] Revert to previous heap scanning method X-Git-Tag: v3_12~850^2~3 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d312823dc3f5b95d6f74bfef503637257a9c10ba [mc] Revert to previous heap scanning method There are issues with the current version. --- diff --git a/src/mc/mc_diff.c b/src/mc/mc_diff.c index 988d8b5706..377e3cbf26 100644 --- a/src/mc/mc_diff.c +++ b/src/mc/mc_diff.c @@ -445,7 +445,7 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) malloc_info* heapinfo2 = mc_snapshot_read_region(&heapinfos2[i1], heap_region2, &heapinfo_temp2, sizeof(malloc_info)); if (heapinfo1->type == MMALLOC_TYPE_FREE || heapinfo1->type == MMALLOC_TYPE_HEAPINFO) { /* Free block */ - i1 += heapinfo1->free_block.size; + i1 ++; continue; } @@ -596,7 +596,7 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) malloc_info* heapinfo2b = mc_snapshot_read_region(&heapinfos2[i2], heap_region2, &heapinfo_temp2b, sizeof(malloc_info)); if (heapinfo2b->type == MMALLOC_TYPE_FREE || heapinfo2b->type == MMALLOC_TYPE_HEAPINFO) { - i2 += heapinfo2b->free_block.size; + i2 ++; continue; }