Commit dd2b56d6 authored by Tom Lane's avatar Tom Lane

Clean up MEMORY_CONTEXT_CHECKING code, and apply it more thoroughly. Also,

apply Karel Zak's patch to recycle residual space in an exhausted allocation
block.  (Bet you thought I'd forgot about that, Karel?)
parent b7c37844
This diff is collapsed.
......@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.37 2000/07/11 14:30:37 momjian Exp $
* $Id: memutils.h,v 1.38 2000/12/01 05:16:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -46,10 +46,11 @@
*/
typedef struct StandardChunkHeader
{
MemoryContext context; /* owning context */
Size size; /* size of data space allocated in chunk */
MemoryContext context; /* owning context */
Size size; /* size of data space allocated in chunk */
#ifdef MEMORY_CONTEXT_CHECKING
Size data_size; /* real data size (without align) */
/* when debugging memory usage, also store actual requested size */
Size requested_size;
#endif
} StandardChunkHeader;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment