Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : stack_areas stored in raw_heap instead of std_heap
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 18 Oct 2012 11:40:09 +0000 (13:40 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 27 Oct 2012 20:35:39 +0000 (22:35 +0200)
src/mc/mc_global.c

index ce251a3..8bb0aa6 100644 (file)
@@ -703,16 +703,18 @@ void MC_ignore(void *address, size_t size){
 
 void MC_new_stack_area(void *stack, char *name, void* context){
 
+  MC_SET_RAW_MEM;
+
   if(stacks_areas == NULL)
     stacks_areas = xbt_dynar_new(sizeof(stack_region_t), NULL);
-
-  MC_SET_RAW_MEM;
+  
   stack_region_t region = NULL;
   region = xbt_new0(s_stack_region_t, 1);
   region->address = stack;
   region->process_name = strdup(name);
   region->context = context;
   xbt_dynar_push(stacks_areas, &region);
+  
   MC_UNSET_RAW_MEM;
 }