X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f6b0d23eaea9e39da091df3e74149c7e1e1ff4f6..b08c515d1ded5726d50e3e9e11c03260e3e1546d:/src/mc/mc_checkpoint.c diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 7b3646974e..832005f125 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -1,4 +1,5 @@ -/* Copyright (c) 2008-2013 Da SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2013. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -501,7 +502,7 @@ static xbt_dynar_t MC_get_local_variables_values(void *stack_context){ int frame_found = 0, region_type; void *frame_pointer_address = NULL; long true_ip, value; - int stop; + int stop = 0; xbt_dynar_t variables = xbt_dynar_new(sizeof(local_variable_t), local_variable_free_voidp); @@ -726,10 +727,6 @@ static void MC_dump_checkpoint_ignore(mc_snapshot_t snapshot){ mc_snapshot_t MC_take_snapshot(){ - int raw_mem = (mmalloc_get_current_heap() == raw_heap); - - MC_SET_RAW_MEM; - mc_snapshot_t snapshot = xbt_new0(s_mc_snapshot_t, 1); snapshot->nb_processes = xbt_swag_size(simix_global->process_list); @@ -746,11 +743,6 @@ mc_snapshot_t MC_take_snapshot(){ MC_dump_checkpoint_ignore(snapshot); - MC_UNSET_RAW_MEM; - - if(raw_mem) - MC_SET_RAW_MEM; - return snapshot; }