} else {
DEBUG0("There are no more processes to interleave.");
+ /* Trash the current state, no longer needed */
+ MC_SET_RAW_MEM;
+ xbt_fifo_shift(mc_stack);
+ MC_state_delete(state);
+ MC_UNSET_RAW_MEM;
+
/* Check for deadlocks */
if(MC_deadlock_check()){
- MC_show_deadlock(&process->request);
+ MC_show_deadlock(NULL);
return;
}
- /* Trash the current state, no longer needed */
MC_SET_RAW_MEM;
- xbt_fifo_shift(mc_stack);
- MC_state_delete(state);
-
/* Traverse the stack backwards until a state with a non empty interleave
set is found, deleting all the states that have it empty in the way.
For each deleted state, check if the request that has generated it
void MC_show_deadlock(smx_req_t req)
{
- char *req_str = NULL;
+ /*char *req_str = NULL;*/
INFO0("**************************");
INFO0("*** DEAD-LOCK DETECTED ***");
INFO0("**************************");
INFO0("Locked request:");
- req_str = MC_request_to_string(req);
+ /*req_str = MC_request_to_string(req);
INFO1("%s", req_str);
- xbt_free(req_str);
+ xbt_free(req_str);*/
INFO0("Counter-example execution trace:");
MC_dump_stack(mc_stack);
}
while ((p = xbt_swag_extract(simix_global->process_list)))
SIMIX_process_kill(p, SIMIX_process_self());
+ SIMIX_context_runall(simix_global->process_to_run);
SIMIX_context_runall(simix_global->process_to_run);
SIMIX_process_empty_trash();
}