summaryrefslogtreecommitdiff
path: root/innobase/mem
diff options
context:
space:
mode:
authorheikki@donna.mysql.fi <>2001-09-20 21:04:48 +0300
committerheikki@donna.mysql.fi <>2001-09-20 21:04:48 +0300
commit59f9fc4fe2d503af1bfb414496f3b507a91ce31b (patch)
tree93ddcb5cf7eb5dcc4666dd6f0700e66f31fff260 /innobase/mem
parent1ac9e1e678f2a91efe666605fbae573a451f5a6a (diff)
downloadmariadb-git-59f9fc4fe2d503af1bfb414496f3b507a91ce31b.tar.gz
mem0mem.ic Changes to eliminate unnecessary Purify warnings
ut0mem.h Changes to eliminate unnecessary Purify warnings ut0mem.ic Changes to eliminate unnecessary Purify warnings srv0start.c Changes to eliminate unnecessary Purify warnings mem0pool.c Changes to eliminate unnecessary Purify warnings ut0mem.c Changes to eliminate unnecessary Purify warnings
Diffstat (limited to 'innobase/mem')
-rw-r--r--innobase/mem/mem0pool.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/innobase/mem/mem0pool.c b/innobase/mem/mem0pool.c
index e8c02d812c4..6c3a4adebae 100644
--- a/innobase/mem/mem0pool.c
+++ b/innobase/mem/mem0pool.c
@@ -170,7 +170,11 @@ mem_pool_create(
pool = ut_malloc(sizeof(mem_pool_t));
- pool->buf = ut_malloc(size);
+ /* We do not set the memory to zero (FALSE) in the pool,
+ but only when allocated at a higher level in mem0mem.c.
+ This is to avoid masking useful Purify warnings. */
+
+ pool->buf = ut_malloc_low(size, FALSE);
pool->size = size;
mutex_create(&(pool->mutex));