X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/76085a39ff2f31f090b4ce6b78833141f6796c72..394c1a744abaf32ddcc2c594c2208c30932f885a:/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);