A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright lines for 2022.
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mm_legacy.c
diff --git
a/src/xbt/mmalloc/mm_legacy.c
b/src/xbt/mmalloc/mm_legacy.c
index
002d9c5
..
3228074
100644
(file)
--- a/
src/xbt/mmalloc/mm_legacy.c
+++ b/
src/xbt/mmalloc/mm_legacy.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-202
0
. The SimGrid Team.
+/* Copyright (c) 2010-202
2
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-13,9
+13,8
@@
#include "mmprivate.h"
#include "src/internal_config.h"
#include "mmprivate.h"
#include "src/internal_config.h"
-#include "src/mc/mc_base.h"
#include "src/mc/remote/mc_protocol.h"
#include "src/mc/remote/mc_protocol.h"
-#include "
src
/xbt_modinter.h"
+#include "
xbt
/xbt_modinter.h"
#include <math.h>
/* ***** Whether to use `mmalloc` of the underlying malloc ***** */
#include <math.h>
/* ***** Whether to use `mmalloc` of the underlying malloc ***** */
@@
-117,7
+116,7
@@
XBT_ATTRIB_CONSTRUCTOR(101) static void mm_legacy_constructor()
if (mm_initialized)
return;
mm_initializing = 1;
if (mm_initialized)
return;
mm_initializing = 1;
- __malloc_use_mmalloc = getenv(MC_ENV_
VARIABLE
) ? 1 : 0;
+ __malloc_use_mmalloc = getenv(MC_ENV_
SOCKET_FD
) ? 1 : 0;
if (__malloc_use_mmalloc) {
__mmalloc_current_heap = mmalloc_preinit();
} else {
if (__malloc_use_mmalloc) {
__mmalloc_current_heap = mmalloc_preinit();
} else {