X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d66e96ca98cc03b22059763fdab1146af5e5fadb..824740eb0df1dedddb86035ff3730d87e037f356:/src/mc/api/RemoteApp.cpp diff --git a/src/mc/api/RemoteApp.cpp b/src/mc/api/RemoteApp.cpp index 3c6365c895..cb9450d536 100644 --- a/src/mc/api/RemoteApp.cpp +++ b/src/mc/api/RemoteApp.cpp @@ -41,7 +41,7 @@ static void cleanup_master_socket() RemoteApp::RemoteApp(const std::vector& args, bool need_memory_introspection) : app_args_(args) { if (need_memory_introspection) { -#if SIMGRID_HAVE_MC +#if SIMGRID_HAVE_STATEFUL_MC checker_side_ = std::make_unique(app_args_, need_memory_introspection); initial_snapshot_ = std::make_shared(0, page_store_, *checker_side_->get_remote_memory()); #else @@ -77,7 +77,7 @@ void RemoteApp::restore_initial_state() { if (initial_snapshot_ == nullptr) // No memory introspection checker_side_ = application_factory_->clone(master_socket_); -#if SIMGRID_HAVE_MC +#if SIMGRID_HAVE_STATEFUL_MC else initial_snapshot_->restore(*checker_side_->get_remote_memory()); #endif @@ -189,7 +189,7 @@ Transition* RemoteApp::handle_simcall(aid_t aid, int times_considered, bool new_ m.times_considered_ = times_considered; checker_side_->get_channel().send(m); -#if SIMGRID_HAVE_MC +#if SIMGRID_HAVE_STATEFUL_MC if (auto* memory = get_remote_process_memory(); memory != nullptr) memory->clear_cache(); #endif