diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2008-10-15 06:30:11 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2008-10-15 06:30:11 +0000 |
commit | 91d5d9d04a1a0137a6d16089c46f21771b62b3e2 (patch) | |
tree | 5668b30e432c29eac8a4dfbf8eebff02af603c35 /ldap/servers/slapd/ch_malloc.c | |
parent | f7bc5b0691f58138eeb7783af9743de4410b46c4 (diff) | |
download | ds-91d5d9d04a1a0137a6d16089c46f21771b62b3e2.tar.gz ds-91d5d9d04a1a0137a6d16089c46f21771b62b3e2.tar.xz ds-91d5d9d04a1a0137a6d16089c46f21771b62b3e2.zip |
Resolves: #466702
Summary: Memory usage research: checking in the experimental code
See also: http://directory.fedoraproject.org/wiki/Memory_Usage_Research
Diffstat (limited to 'ldap/servers/slapd/ch_malloc.c')
-rw-r--r-- | ldap/servers/slapd/ch_malloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 ================================== */ |