X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c77c6877f59b1fa95da6d76e1bdbf6e0ac5ddef..96c00b83efee36af986777b823c79938297ca17d:/src/msg/msg_global.cpp diff --git a/src/msg/msg_global.cpp b/src/msg/msg_global.cpp index bec6a7b90d..a75e536279 100644 --- a/src/msg/msg_global.cpp +++ b/src/msg/msg_global.cpp @@ -1,14 +1,15 @@ -/* Copyright (c) 2004-2015. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2017. 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 "simgrid/s4u/engine.hpp" -#include "simgrid/s4u/host.hpp" +#include "simgrid/s4u/Engine.hpp" +#include "simgrid/s4u/Host.hpp" #include "instr/instr_interface.h" #include "mc/mc.h" #include "src/msg/msg_private.h" +#include "src/mc/mc_ignore.h" XBT_LOG_NEW_CATEGORY(msg, "All MSG categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_kernel, msg, "Logging specific to MSG (kernel)"); @@ -37,7 +38,7 @@ void MSG_init_nocheck(int *argc, char **argv) { xbt_getpid = &MSG_process_self_PID; if (!msg_global) { - msg_global = xbt_new0(s_MSG_Global_t, 1); + msg_global = new s_MSG_Global_t(); xbt_cfg_register_boolean("msg/debug-multiple-use", "no", _sg_cfg_cb_msg_debug_multiple_use, "Print backtraces of both processes when there is a conflict of multiple use of a task"); @@ -120,7 +121,7 @@ static void MSG_exit() { TRACE_surf_resource_utilization_release(); TRACE_end(); - free(msg_global); + delete msg_global; msg_global = nullptr; }