X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe304706848f0a64477d4687b3ea97d5b9a0c35c..71af21fb892c4e4d6676b8ac14b836e59a1af4bc:/src/mc/mc_state.cpp diff --git a/src/mc/mc_state.cpp b/src/mc/mc_state.cpp index 4ad61ab101..542163b1e8 100644 --- a/src/mc/mc_state.cpp +++ b/src/mc/mc_state.cpp @@ -27,7 +27,7 @@ State::State(unsigned long state_number) : num(state_number) actorStates.resize(MC_smx_get_maxpid()); /* Stateful model checking */ if ((_sg_mc_checkpoint > 0 && (state_number % _sg_mc_checkpoint == 0)) || _sg_mc_termination) { - system_state = simgrid::mc::take_snapshot(num); + system_state = std::make_shared(num); if (_sg_mc_comms_determinism || _sg_mc_send_determinism) { MC_state_copy_incomplete_communications_pattern(this); MC_state_copy_index_communications_pattern(this);