diff options
| author | Tom Lane | 2000-12-01 05:16:45 +0000 |
|---|---|---|
| committer | Tom Lane | 2000-12-01 05:16:45 +0000 |
| commit | dd2b56d6233ead38659d963f6557ca1cb7ab7dcb (patch) | |
| tree | 75aa4dc13de834ad89bf96cbe495e41e62c3f803 /src/include | |
| parent | b7c378441793fd0e245b18e06d1aad17bdfe2de6 (diff) | |
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?)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/memutils.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h index be322cbccc3..79e41b2df13 100644 --- a/src/include/utils/memutils.h +++ b/src/include/utils/memutils.h @@ -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; |
