Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : add local variables from xbt/ex.h in ignore mechanism for stacks...
[simgrid.git] / src / simix / smx_process.c
index 95bf7c79b77f588b0f2f77c5308bcdcf9d467202..ad38a717cc73814ce8a9cb5da9f006f4a297dcd7 100644 (file)
@@ -709,6 +709,13 @@ void SIMIX_process_yield(smx_process_t self)
     self->doexception = 0;
     SMX_THROW();
   }
+
+  /* Ignore some local variables from xbt/ex.c for stacks comparison */
+  if(MC_is_active()){
+    MC_ignore_stack("ctx", "SIMIX_process_yield");
+    MC_ignore_stack("_throw_ctx", "SIMIX_process_yield");
+    MC_ignore_stack("_log_ev", "SIMIX_process_yield");
+  }
 }
 
 /* callback: context fetching */