std::size_t State::count_todo_multiples() const
{
size_t count = 0;
- for (auto& [_, actor] : strategy_->actors_to_run_)
+ for (auto const& [_, actor] : strategy_->actors_to_run_)
if (actor.is_todo())
count += actor.get_times_not_considered();
* to decrease the count. */
void execute_next(aid_t aid, RemoteApp& app) override
{
- auto& actor = actors_to_run_.at(aid);
+ auto const& actor = actors_to_run_.at(aid);
if ((not taking_wait_) and is_transition_wait(actor.get_transition(actor.get_times_considered())->type_)) {
taken_wait_++;
taking_wait_ = true;
return unw_create_addr_space(&accessors, BYTE_ORDER);
}
-void UnwindContext::initialize(simgrid::mc::RemoteProcessMemory& process_memory, unw_context_t* c)
+void UnwindContext::initialize(simgrid::mc::RemoteProcessMemory& process_memory, const unw_context_t* c)
{
this->address_space_ = &process_memory;
this->process_ = &process_memory;
unw_context_t unwind_context_ = {};
public:
- void initialize(simgrid::mc::RemoteProcessMemory& process, unw_context_t* c);
+ void initialize(simgrid::mc::RemoteProcessMemory& process, const unw_context_t* c);
unw_cursor_t cursor();
private: // Methods and virtual table for libunwind
ignore_restore();
}
-void Snapshot::add_region(RegionType type, RemoteProcessMemory& memory, ObjectInformation* object_info,
+void Snapshot::add_region(RegionType type, const RemoteProcessMemory& memory, ObjectInformation* object_info,
void* start_addr, std::size_t size)
{
if (type == RegionType::Data)
std::vector<s_mc_snapshot_ignored_data_t> ignored_data_;
private:
- void add_region(RegionType type, RemoteProcessMemory& memory, ObjectInformation* object_info, void* start_addr,
+ void add_region(RegionType type, const RemoteProcessMemory& memory, ObjectInformation* object_info, void* start_addr,
std::size_t size);
void snapshot_regions(RemoteProcessMemory& memory);
void snapshot_stacks(RemoteProcessMemory& memory);