git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8669
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
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