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
Remove bogus XBT_PRIVATE
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mm_module.c
diff --git
a/src/xbt/mmalloc/mm_module.c
b/src/xbt/mmalloc/mm_module.c
index
8490906
..
4ca13af
100644
(file)
--- a/
src/xbt/mmalloc/mm_module.c
+++ b/
src/xbt/mmalloc/mm_module.c
@@
-27,16
+27,17
@@
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include "src/internal_config.h"
#include <sys/types.h>
#include <fcntl.h> /* After sys/types.h, at least for dpx/2. */
#include <sys/stat.h>
#include <string.h>
#include <sys/types.h>
#include <fcntl.h> /* After sys/types.h, at least for dpx/2. */
#include <sys/stat.h>
#include <string.h>
-#if
def
HAVE_UNISTD_H
+#if HAVE_UNISTD_H
#include <unistd.h> /* Prototypes for lseek */
#endif
#include "mmprivate.h"
#include "xbt/ex.h"
#include <unistd.h> /* Prototypes for lseek */
#endif
#include "mmprivate.h"
#include "xbt/ex.h"
-#include "xbt_modinter.h" /* declarations of mmalloc_preinit and friends that live here */
+#include "
src/
xbt_modinter.h" /* declarations of mmalloc_preinit and friends that live here */
#ifndef SEEK_SET
#define SEEK_SET 0
#ifndef SEEK_SET
#define SEEK_SET 0
@@
-359,7
+360,7
@@
void mmalloc_postexit(void)
size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapinfo)
{
int bytes = 0;
size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapinfo)
{
int bytes = 0;
- for (size_t i=0; i
<=
heaplimit; ++i){
+ for (size_t i=0; i
<
heaplimit; ++i){
if (heapinfo[i].type == MMALLOC_TYPE_UNFRAGMENTED){
if (heapinfo[i].busy_block.busy_size > 0)
bytes += heapinfo[i].busy_block.busy_size;
if (heapinfo[i].type == MMALLOC_TYPE_UNFRAGMENTED){
if (heapinfo[i].busy_block.busy_size > 0)
bytes += heapinfo[i].busy_block.busy_size;