From a8047b92299948edf6dea5ca54c7cec55f93410f Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Fri, 30 Apr 2004 20:07:47 +0000 Subject: [PATCH] Use LAM_ENABLE_MEM_PROFILING correctly. Now we can handle the configure options --disable-mem-profile and --disable-meme-debug. This commit was SVN r1106. --- src/mem/free_lists.c | 4 ++-- src/mem/free_lists.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mem/free_lists.c b/src/mem/free_lists.c index 325795c375..9a2214e192 100644 --- a/src/mem/free_lists.c +++ b/src/mem/free_lists.c @@ -63,7 +63,7 @@ void lam_free_lists_construct(lam_free_lists_t *flist) flist->fl_nevents = NULL; flist->fl_chunks_req = NULL; flist->fl_chunks_returned = NULL; -#endif +#endif /* LAM_ENABLE_MEM_PROFILE */ } @@ -96,7 +96,7 @@ void lam_free_lists_destruct(lam_free_lists_t *flist) if ( flist->fl_chunks_returned ) free(flist->fl_chunks_returned); -#endif +#endif /* LAM_ENABLE_MEM_PROFILE */ } diff --git a/src/mem/free_lists.h b/src/mem/free_lists.h index ddddc4b48a..e9c80afc62 100644 --- a/src/mem/free_lists.h +++ b/src/mem/free_lists.h @@ -36,15 +36,15 @@ struct lam_free_lists_t lam_class_t *fl_elt_cls; /* this will be used to create new free list elements. */ lam_mutex_t fl_lock; +#if LAM_ENABLE_MEM_PROFILE /* for mem profiling */ int *fl_elt_out; int *fl_elt_max; int *fl_elt_sum; int *fl_nevents; -#if LAM_ENABLE_DEBUG int *fl_chunks_req; int *fl_chunks_returned; -#endif +#endif /* LAM_ENABLE_MEM_PROFILE */ }; typedef struct lam_free_lists_t lam_free_lists_t;