1
1

HAVE_MALLOPT is defined only when we have it. It's not a 1/0 ttype of define, it's a

defined/undefined one.

This commit was SVN r9221.
Этот коммит содержится в:
George Bosilca 2006-03-08 22:29:01 +00:00
родитель c604c5da2f
Коммит 4fb373c7e8

Просмотреть файл

@ -27,10 +27,10 @@
#include "ompi/mca/mpool/base/base.h"
#include "mpool_base_mem_cb.h"
#if HAVE_MALLOPT == 1
#if defined(HAVE_MALLOPT)
#include <malloc.h>
extern int mca_mpool_base_disable_sbrk;
#endif
#endif /* defined(HAVE_MALLOPT) */
extern int mca_mpool_base_use_mem_hooks;
@ -96,12 +96,12 @@ mca_mpool_base_module_t* mca_mpool_base_module_create(
OBJ_CONSTRUCT(&mca_mpool_base_mem_cb_array, ompi_pointer_array_t);
}
#if HAVE_MALLOPT == 1
#if defined(HAVE_MALLOPT)
else if(mca_mpool_base_disable_sbrk) {
mallopt(M_TRIM_THRESHOLD, -1);
mallopt(M_MMAP_MAX, 0);
}
#endif
#endif /* defined(HAVE_MALLOPT) */
}
return module;
}