]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/VisitedState.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another attempt at PRELOADing mmalloc (WIP)
[simgrid.git] / src / mc / VisitedState.cpp
index 16a667614daf56a21039c0f80415530c0291579d..5ad40434294e2196d432605f2257ac6948b9c177 100644 (file)
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_VisitedState, mc, "Logging specific to state equality detection mechanisms");
 
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
 
 /** @brief Save the current state */
 VisitedState::VisitedState(unsigned long state_number) : num(state_number)
 {
   this->heap_bytes_used = Api::get().get_remote_heap_bytes();
-  this->actors_count    = Api::get().get_actors().size();
+  this->actors_count    = mc_model_checker->get_remote_process().actors().size();
   this->system_state = std::make_shared<simgrid::mc::Snapshot>(state_number);
 }
 
@@ -86,5 +85,4 @@ VisitedStates::addVisitedState(unsigned long state_number, simgrid::mc::State* g
   return nullptr;
 }
 
-}
-}
+} // namespace simgrid::mc