-/* Copyright (c) 2015-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <xbt/log.h>
#include <xbt/mmalloc.h>
-#include <xbt/swag.h>
#include <xbt/sysdep.h>
#include <simgrid/modelchecker.h>
void Client::handleRestore(s_mc_message_restore_t* message)
{
#if HAVE_SMPI
- smpi_really_switch_data_segment(message->index);
+ smpi_really_switch_data_segment(simgrid::s4u::Actor::by_pid(message->index));
#endif
}
void Client::handleActorEnabled(s_mc_message_actor_enabled_t* msg)
region.size = size;
region.block = ((char*)stack - (char*)heap->heapbase) / BLOCKSIZE + 1;
#if HAVE_SMPI
- if (smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP && process)
- region.process_index = process->pid - 1;
+ if (smpi_privatize_global_variables == SmpiPrivStrategies::MMAP && process)
+ region.process_index = process->pid_ - 1;
else
#endif
region.process_index = -1;