From: Marion Guthmuller Date: Fri, 4 Oct 2013 13:00:13 +0000 (+0200) Subject: model-checker : set comm to NULL before creating them with simcall (MC compliant) X-Git-Tag: v3_9_90~40^2~17 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/23b86d7a1237de3fadd05968c3ffaea7c5209a6b?ds=sidebyside model-checker : set comm to NULL before creating them with simcall (MC compliant) --- diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index 907ecdfbd1..8f543a8422 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -240,7 +240,8 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, msg_task_t task, /* Try to send it by calling SIMIX network layer */ TRY { - smx_action_t comm = simcall_comm_isend(mailbox, t_simdata->message_size, + smx_action_t comm = NULL; + comm = simcall_comm_isend(mailbox, t_simdata->message_size, t_simdata->rate, task, sizeof(void *), NULL, NULL, task, 0); #ifdef HAVE_TRACING diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index bcc6ba83c1..dcacc04720 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -760,9 +760,11 @@ void simcall_comm_send(smx_rdv_t rdv, double task_size, double rate, if (MC_is_active()) { /* the model-checker wants two separate simcalls */ - smx_action_t comm = simcall_comm_isend(rdv, task_size, rate, + smx_action_t comm = NULL; + comm = simcall_comm_isend(rdv, task_size, rate, src_buff, src_buff_size, match_fun, NULL, data, 0); simcall_comm_wait(comm, timeout); + comm = NULL; } else { simcall_BODY_comm_send(rdv, task_size, rate, src_buff, src_buff_size, @@ -801,9 +803,11 @@ void simcall_comm_recv(smx_rdv_t rdv, void *dst_buff, size_t * dst_buff_size, if (MC_is_active()) { /* the model-checker wants two separate simcalls */ - smx_action_t comm = simcall_comm_irecv(rdv, dst_buff, dst_buff_size, + smx_action_t comm = NULL; + comm = simcall_comm_irecv(rdv, dst_buff, dst_buff_size, match_fun, data); simcall_comm_wait(comm, timeout); + comm = NULL; } else { simcall_BODY_comm_recv(rdv, dst_buff, dst_buff_size,