Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move instruction at proper place.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 17 Sep 2012 08:08:45 +0000 (10:08 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 17 Sep 2012 08:17:38 +0000 (10:17 +0200)
This instruction was wrongly displaced by commit 98897032e770b9a1437d6aa5820fb448e71bd224
(add an immediate asynchronous send possibility for messages [...]), leading some
simulations to failure.

One such example is "chord" with large platforms (cluster with 10000+ hosts).

src/simix/smx_network.c

index d71158a..a247f08 100644 (file)
@@ -415,12 +415,10 @@ smx_action_t SIMIX_comm_irecv(smx_process_t dst_proc, smx_rdv_t rdv,
       --smx_total_comms; // this creation was a pure waste
       other_action->state = SIMIX_READY;
       other_action->comm.type = SIMIX_COMM_READY;
-      xbt_fifo_push(dst_proc->comms, other_action);
-
     }
+    xbt_fifo_push(dst_proc->comms, other_action);
   }
 
-
   /* Setup communication action */
   other_action->comm.dst_proc = dst_proc;
   other_action->comm.dst_buff = dst_buff;