Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : remove maestro stack from stack comparison
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 6 Oct 2012 17:01:04 +0000 (19:01 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 6 Oct 2012 17:01:04 +0000 (19:01 +0200)
src/mc/mc_compare.c
src/simix/smx_context_base.c

index 232fe72..2601939 100644 (file)
@@ -179,7 +179,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){
   }
 
   /* Stacks comparison */
-  unsigned int cursor = 1;
+  unsigned int cursor = 0;
   stack_region_t stack_region1, stack_region2;
   void *sp1, *sp2;
   int diff = 0, diff_local = 0;
index d7f1a79..e248369 100644 (file)
@@ -64,7 +64,7 @@ smx_ctx_base_factory_create_context_sized(size_t size,
   }
   context->data = data;
 
-  if(MC_IS_ENABLED)
+  if(MC_IS_ENABLED && code)
     MC_new_stack_area(context, ((smx_process_t)context->data)->name);
 
   return context;