From 7c408ffb3954d4624ef1cef162348f811c5e5405 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 17 Sep 2012 10:08:45 +0200 Subject: [PATCH 1/1] Move instruction at proper place. 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index d71158af3a..a247f086b1 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -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; -- 2.20.1