From: Marion Guthmuller Date: Mon, 28 Jan 2013 10:11:59 +0000 (+0100) Subject: unnecessary loop for the reset of the simcall args X-Git-Tag: v3_9_rc1~52 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e1648ed1227078a777534d9b24bb4a4970e6df01 unnecessary loop for the reset of the simcall args --- diff --git a/src/mc/mc_compare.c b/src/mc/mc_compare.c index 873205dc7d..711fd83980 100644 --- a/src/mc/mc_compare.c +++ b/src/mc/mc_compare.c @@ -640,7 +640,6 @@ static int compare_stack(stack_region_t s1, stack_region_t s2, void *sp1, void * int MC_compare_snapshots(void *s1, void *s2){ MC_ignore_stack("self", "simcall_BODY_mc_snapshot"); - MC_ignore_stack("i", "simcall_BODY_mc_snapshot"); return simcall_mc_compare_snapshots(s1, s2); diff --git a/src/simix/smx_smurf_private.h b/src/simix/smx_smurf_private.h index 83d714494f..a418dd0908 100644 --- a/src/simix/smx_smurf_private.h +++ b/src/simix/smx_smurf_private.h @@ -172,10 +172,7 @@ inline static SIMCALL_FUNC_RETURN_TYPE(RES) simcall_BODY_##NAME(MAP(SIMCALL_ARG, ##__VA_ARGS__)) { \ smx_process_t self = SIMIX_process_self(); \ self->simcall.call = TYPE; \ - int i; \ - for(i=0; i< 10; i++){ \ - memset(&(self->simcall.args[i]), 0, sizeof(&(self->simcall.args[i]))); \ - } \ + memset(self->simcall.args, 0, sizeof(self->simcall.args)); \ MAP_WITH_DEFAULT_ARGS(SIMCALL_INIT_FIELD, (), ##__VA_ARGS__) \ if (self != simix_global->maestro_process) { \ XBT_DEBUG("Yield process '%s' on simcall %s (%d)", self->name, \