Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : get start of libsimgrid bss segment for MC_ignore mechanism
[simgrid.git] / src / mc / mc_compare.c
index 389ad34..c80f046 100644 (file)
@@ -81,6 +81,9 @@ static int data_libsimgrid_region_compare(void *d1, void *d2, size_t size){
       if((ignore_size = heap_ignore_size((char *)start_data_libsimgrid+i)) > 0){
         i = i + ignore_size;
         continue;
+      }else if((ignore_size = heap_ignore_size((char *)start_bss_libsimgrid+i)) > 0){
+        i = i + ignore_size;
+        continue;
       }
       pointer_align = (i / sizeof(void*)) * sizeof(void*);
       addr_pointed1 = *((void **)((char *)d1 + pointer_align));
@@ -176,7 +179,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){
     }
   }
 
-  /* Compare number of blocks/fragments uses in each heap */
+  /* Compare number of blocks/fragments used in each heap */
   size_t chunks_used1 = mmalloc_get_chunks_used((xbt_mheap_t)s1->regions[heap_index]->data);
   size_t chunks_used2 = mmalloc_get_chunks_used((xbt_mheap_t)s2->regions[heap_index]->data);
   if(chunks_used1 != chunks_used2){