Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
That went ways too far
[simgrid.git] / src / mc / mc_base.cpp
index 236aab7468d61da434b04f66a016a98cb6c73350..9ecb0de56d49b0796ccc59997f236409b6fb4453 100644 (file)
@@ -58,8 +58,9 @@ void execute_actors()
   engine->reset_actor_dynar();
   for (auto const& kv : engine->get_actor_list()) {
     auto actor = kv.second;
-    if (auto* observer = actor->simcall_.observer_)
-      actor->simcall_.mc_max_consider_ = observer->get_max_consider();
+    // Only visible requests remain at this point, and they all have an observer
+    actor->simcall_.mc_max_consider_ = actor->simcall_.observer_->get_max_consider();
+
     engine->add_actor_to_dynar(actor);
   }
 #endif