X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c9d1059a9299bcfe07778802cf1d9da64016838..0bb08c80b2bff9de24524dc98f04cd145dfc93c0:/src/mc/mc_smx.cpp diff --git a/src/mc/mc_smx.cpp b/src/mc/mc_smx.cpp index bcdec8bd9b..9cc4241903 100644 --- a/src/mc/mc_smx.cpp +++ b/src/mc/mc_smx.cpp @@ -41,13 +41,13 @@ static void MC_process_refresh_simix_actor_dynar(simgrid::mc::RemoteClient* proc process->read_bytes(&dynar, sizeof(dynar), remote_dynar); smx_actor_t* data = static_cast(::operator new(dynar.elmsize * dynar.used)); - process->read_bytes(data, dynar.elmsize * dynar.used, dynar.data); + process->read_bytes(data, dynar.elmsize * dynar.used, simgrid::mc::RemotePtr(dynar.data)); // Load each element of the vector from the MCed process: for (unsigned int i = 0; i < dynar.used; ++i) { simgrid::mc::ActorInformation info; - info.address = data[i]; + info.address = simgrid::mc::RemotePtr(data[i]); info.hostname = nullptr; process->read_bytes(&info.copy, sizeof(info.copy), remote(data[i])); target.push_back(std::move(info)); @@ -71,8 +71,7 @@ void RemoteClient::refresh_simix() static_assert(sizeof(simix_global) == sizeof(simgrid::simix::Global*), "Bad size for simix_global"); - RemotePtr simix_global_p = - this->read_variable("simix_global"); + RemotePtr simix_global_p{this->read_variable("simix_global")}; // simix_global = REMOTE(*simix_global) Remote simix_global =