Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more clear paranoia message
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 26 Nov 2010 14:11:22 +0000 (14:11 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 26 Nov 2010 14:11:22 +0000 (14:11 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8669 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_network.c

index b84c935..2c958a6 100644 (file)
@@ -171,10 +171,8 @@ void SIMIX_communication_destroy(smx_comm_t comm)
   VERB2("Destroy communication %p; refcount initially %d", comm,
         comm->refcount);
 
-  if(!(comm->refcount>0)) {
-         INFO1("There is no more reference to this comm (%p). Cannot destroy!",comm);
-         xbt_die("Argh.!");
-  }
+  if(!(comm->refcount>0))
+         xbt_die(bprintf("the refcount of comm %p is already 0 before decreasing it. That's a bug!",comm));
 
 #ifdef HAVE_LATENCY_BOUND_TRACKING
   //save is latency limited flag to use afterwards