From: Arnaud Legrand Date: Mon, 2 Apr 2012 14:19:31 +0000 (+0200) Subject: This commit partially reverts commit 4e0c8570051df3f7114e0097bf888a99946b6138. X-Git-Tag: v3_7~63^2~12 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/403dffe3ed80a3b2761171f5984e4a7d63fde281 This commit partially reverts commit 4e0c8570051df3f7114e0097bf888a99946b6138. Such a lazy resume seem to clash with the use of synchronization structures. The problem is well illustrated with simgrid-boinc. Surprisingly, simgrid/valgrind go completely crazy and segfaults in stuff like pthread_getspecific. --- diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 7c54b7af0f..7ea92f35f3 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -380,11 +380,6 @@ void SIMIX_process_resume(smx_process_t process, smx_process_t issuer) { xbt_assert((process != NULL), "Invalid parameters"); - if (!process->suspended) { - XBT_DEBUG("Process '%s' is not suspended", process->name); - return; - } - process->suspended = 0; /* If we are resuming another process, resume the action it was waiting for