Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Handle default case in switch statements.
[simgrid.git] / src / mc / mc_memory.cpp
1 /* Copyright (c) 2008-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <sys/stat.h>
8 #include <fcntl.h>
9
10 #include "xbt/log.h"
11
12 #include "mc/mc.h"
13 #include "src/mc/mc_private.hpp"
14 #include "src/xbt/mmalloc/mmprivate.h"
15
16 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_memory, mc,
17                                 "Logging specific to MC (memory)");
18
19 /* Initialize the model-checker memory subsystem */
20 /* It creates the two heap regions: std_heap and mc_heap */
21 void MC_memory_init()
22 {
23   if (not malloc_use_mmalloc())
24     xbt_die("Model-checking support is not enabled: run with simgrid-mc.");
25 }