From 91d5d9d04a1a0137a6d16089c46f21771b62b3e2 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Wed, 15 Oct 2008 06:30:11 +0000 Subject: Resolves: #466702 Summary: Memory usage research: checking in the experimental code See also: http://directory.fedoraproject.org/wiki/Memory_Usage_Research --- ldap/servers/slapd/ch_malloc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ldap/servers/slapd/ch_malloc.c') diff --git a/ldap/servers/slapd/ch_malloc.c b/ldap/servers/slapd/ch_malloc.c index df72a603..b2afbe0d 100644 --- a/ldap/servers/slapd/ch_malloc.c +++ b/ldap/servers/slapd/ch_malloc.c @@ -139,6 +139,7 @@ log_negative_alloc_msg( const char *op, const char *units, unsigned long size ) op, size, units, units ); } +#if !defined(MEMPOOL_EXPERIMENTAL) char * slapi_ch_malloc( unsigned long size @@ -300,6 +301,7 @@ slapi_ch_strdup ( const char* s1) #endif return newmem; } +#endif /* !MEMPOOL_EXPERIMENTAL */ struct berval* slapi_ch_bvdup (const struct berval* v) @@ -334,6 +336,7 @@ slapi_ch_bvecdup (struct berval** v) return newberval; } +#if !defined(MEMPOOL_EXPERIMENTAL) /* * Function: slapi_ch_free * @@ -368,6 +371,7 @@ slapi_ch_free(void **ptr) PR_DECREMENT_COUNTER(slapi_ch_counter_exist); return; } +#endif /* !MEMPOOL_EXPERIMENTAL */ /* just like slapi_ch_free, takes the address of the struct berval pointer */ @@ -414,6 +418,7 @@ slapi_ch_free_string(char **s) the operating system. But if this changes in the future, this function will have to change as well. */ +#if !defined(MEMPOOL_EXPERIMENTAL) char * slapi_ch_smprintf(const char *fmt, ...) { @@ -430,6 +435,7 @@ slapi_ch_smprintf(const char *fmt, ...) return p; } +#endif /* ========================= NT Specific Leak Checking Code ================================== */ -- cgit