Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reintroduce lines removed at commit 5bc3597e1513c7b94497ae0ea819e5fa2e28058a.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 1 Oct 2017 20:32:48 +0000 (22:32 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 1 Oct 2017 20:43:55 +0000 (22:43 +0200)
Only put them in SIMIX_clean instead of SIMIX_process_killall.

I don't really understand when/why they are useful, but the call to
SIMIX_process_empty_trash() fixes a leak seen with teshsuite/mc/random-bug.

src/simix/smx_global.cpp

index 07d7058..61469fb 100644 (file)
@@ -286,6 +286,8 @@ void SIMIX_clean()
   }
   /* Kill all processes (but maestro) */
   SIMIX_process_killall(simix_global->maestro_process, 1);
+  SIMIX_context_runall();
+  SIMIX_process_empty_trash();
 
   /* Exit the SIMIX network module */
   SIMIX_mailbox_exit();