X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/515cd2622ad1000f5f3ba58ecfaf488ac922b963..7fd6faa16a89c1019a9fe562be79942add51842e:/src/mc/VisitedState.cpp diff --git a/src/mc/VisitedState.cpp b/src/mc/VisitedState.cpp index 3902d911a5..8e19472627 100644 --- a/src/mc/VisitedState.cpp +++ b/src/mc/VisitedState.cpp @@ -19,11 +19,12 @@ namespace simgrid::mc { /** @brief Save the current state */ VisitedState::VisitedState(unsigned long state_number, unsigned int actor_count, RemoteApp& remote_app) - : heap_bytes_used_(remote_app.get_remote_process_memory().get_remote_heap_bytes()) + : heap_bytes_used_(remote_app.get_remote_process_memory()->get_remote_heap_bytes()) , actor_count_(actor_count) , num_(state_number) { - this->system_state_ = std::make_shared(state_number, remote_app.get_page_store()); + this->system_state_ = std::make_shared(state_number, remote_app.get_page_store(), + *remote_app.get_remote_process_memory()); } void VisitedStates::prune() @@ -57,7 +58,8 @@ VisitedStates::addVisitedState(unsigned long state_number, simgrid::mc::State* g for (auto i = range_begin; i != range_end; ++i) { auto& visited_state = *i; - if (*visited_state->system_state_.get() == *new_state->system_state_.get()) { + if (visited_state->system_state_->equals_to(*new_state->system_state_.get(), + *remote_app.get_remote_process_memory())) { // The state has been visited: std::unique_ptr old_state = std::move(visited_state);