From: Arnaud Giersch Date: Sun, 1 Oct 2017 20:32:48 +0000 (+0200) Subject: Reintroduce lines removed at commit 5bc3597e1513c7b94497ae0ea819e5fa2e28058a. X-Git-Tag: v3_17~49 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/934e15f8ffc473c09214dd3dcbd4a926d2fa0846 Reintroduce lines removed at commit 5bc3597e1513c7b94497ae0ea819e5fa2e28058a. 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. --- diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 07d7058e2d..61469fb447 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -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();