-CheckerSide::CheckerSide(int sockfd, pid_t pid)
- : remote_memory_(std::make_unique<simgrid::mc::RemoteProcessMemory>(pid))
- , channel_(sockfd)
- , running_(true)
- , pid_(pid)
+CheckerSide::CheckerSide(int sockfd, pid_t pid) : channel_(sockfd), running_(true), pid_(pid)
xbt_assert(size == sizeof(message), "Broken message. Got %d bytes instead of %d.", (int)size,
(int)sizeof(message));
memcpy(&message, buffer, sizeof(message));
xbt_assert(size == sizeof(message), "Broken message. Got %d bytes instead of %d.", (int)size,
(int)sizeof(message));
memcpy(&message, buffer, sizeof(message));
-
- get_remote_memory().init(message.mmalloc_default_mdp);
+ /* Create the memory address space, now that we have the mandatory information */
+ remote_memory_ = std::make_unique<simgrid::mc::RemoteProcessMemory>(pid_, message.mmalloc_default_mdp);