Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 29 May 2017 15:18:16 +0000 (17:18 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 29 May 2017 15:29:31 +0000 (17:29 +0200)
src/plugins/vm/VirtualMachineImpl.cpp
src/simix/ActorImpl.cpp

index a678568..a5d3272 100644 (file)
@@ -219,7 +219,7 @@ void VirtualMachineImpl::shutdown(smx_actor_t issuer)
       case SURF_VM_STATE_DESTROYED:
         stateName = "destroyed";
         break;
-      case SURF_VM_STATE_RUNNING:
+      default: /* SURF_VM_STATE_RUNNING or unexpected values */
         THROW_IMPOSSIBLE;
         break;
     }
index 2930fc1..050fe62 100644 (file)
@@ -121,7 +121,6 @@ void SIMIX_process_cleanup(smx_actor_t process)
         /* the comm will be freed right now, remove it from the sender */
         comm->src_proc->comms.remove(comm);
       }
-      // SIMIX_comm_unref(comm);
     } else {
       xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro);
     }