Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DOC] Fixed even more errors.
[simgrid.git] / src / mc / mc_memory.cpp
1 /* Copyright (c) 2008-2015. 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 #include "xbt/dynar.h"
12 #include "xbt/virtu.h"
13
14 #include "mc/mc.h"
15 #include "src/mc/mc_object_info.h"
16 #include "src/mc/mc_private.h"
17
18 extern "C" {
19
20 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_memory, mc,
21                                 "Logging specific to MC (memory)");
22
23 /* Initialize the model-checker memory subsystem */
24 /* It creates the two heap regions: std_heap and mc_heap */
25 void MC_memory_init()
26 {
27   if (!malloc_use_mmalloc()) {
28     xbt_die("Model-checking support is not enabled: run with simgrid-mc.");
29   }
30 }
31
32 /* Finalize the memory subsystem */
33 #include "src/xbt_modinter.h"
34 void MC_memory_exit(void)
35 {
36 }
37
38 }