aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/memutils.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-12-16 16:22:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-12-16 16:22:46 +0000
commit88177f77b17ef478da1dbca9acb5e3a61b346613 (patch)
tree6aca48712e12bbdd7a7bab849dcaac3f25684e32 /src/include/utils/memutils.h
parente64c7feb2fd80c89d2220cbe9e026a031f34509c (diff)
downloadpostgresql-88177f77b17ef478da1dbca9acb5e3a61b346613.tar.gz
postgresql-88177f77b17ef478da1dbca9acb5e3a61b346613.zip
Code review for palloc0 patch --- avoid dangerous and unnecessary
practice of evaluating MemSet's arguments multiple times, except for the special case of newNode(), where we can assume the argument is a constant sizeof() operator. Also, add GetMemoryChunkContext() to mcxt.c's API, in preparation for fixing recent GEQO breakage.
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r--src/include/utils/memutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h
index 94578b8fb6f..09198d1c6e6 100644
--- a/src/include/utils/memutils.h
+++ b/src/include/utils/memutils.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: memutils.h,v 1.49 2002/12/15 21:01:34 tgl Exp $
+ * $Id: memutils.h,v 1.50 2002/12/16 16:22:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -83,6 +83,7 @@ extern void MemoryContextResetChildren(MemoryContext context);
extern void MemoryContextDeleteChildren(MemoryContext context);
extern void MemoryContextResetAndDeleteChildren(MemoryContext context);
extern Size GetMemoryChunkSpace(void *pointer);
+extern MemoryContext GetMemoryChunkContext(void *pointer);
extern void MemoryContextStats(MemoryContext context);
#ifdef MEMORY_CONTEXT_CHECKING