From: Martin Quinson Date: Tue, 22 Nov 2016 10:30:20 +0000 (+0100) Subject: VM: inline a function X-Git-Tag: v3_14~149 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/397be753d4e5a7371b973245bb04ae657d0d7db0 VM: inline a function --- diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index f9d17bc0ae..998e8b4bc2 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -360,20 +360,21 @@ static int migration_rx_fun(int argc, char *argv[]) xbt_free(task_name); } - XBT_DEBUG("mig: rx_done"); return 0; } -static void reset_dirty_pages(msg_vm_t vm) +static void start_dirty_page_tracking(msg_vm_t vm) { simgrid::surf::VirtualMachineImpl* pimpl = static_cast(vm)->pimpl_vm_; + pimpl->dp_enabled = 1; + if (!pimpl->dp_objs) + return; + char *key = nullptr; xbt_dict_cursor_t cursor = nullptr; dirty_page_t dp = nullptr; - if (!pimpl->dp_objs) - return; xbt_dict_foreach (pimpl->dp_objs, cursor, key, dp) { double remaining = MSG_task_get_flops_amount(dp->task); dp->prev_clock = MSG_get_clock(); @@ -383,13 +384,6 @@ static void reset_dirty_pages(msg_vm_t vm) } } -static void start_dirty_page_tracking(msg_vm_t vm) -{ - static_cast(vm)->pimpl_vm_->dp_enabled = 1; - - reset_dirty_pages(vm); -} - static void stop_dirty_page_tracking(msg_vm_t vm) { static_cast(vm)->pimpl_vm_->dp_enabled = 0;