1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-08 00:47:37 +03:00

New alloc set code using a memory block pool for small allocations.

Jan
This commit is contained in:
Jan Wieck
1999-02-06 16:50:34 +00:00
parent 7d2b3874aa
commit ead64f317b
13 changed files with 1666 additions and 314 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memnodes.h,v 1.8 1998/09/01 04:36:39 momjian Exp $
* $Id: memnodes.h,v 1.9 1999/02/06 16:50:30 wieck Exp $
*
* XXX the typedefs in this file are different from the other ???nodes.h;
* they are pointers to structures instead of the structures themselves.
@@ -56,7 +56,7 @@ typedef struct MemoryContextMethodsData
void (*dump) ();
} *MemoryContextMethods;
typedef struct MemoryContext
typedef struct MemoryContextData
{
NodeTag type;
MemoryContextMethods method;
@@ -64,7 +64,7 @@ typedef struct MemoryContext
/* think about doing this right some time but we'll have explicit fields
for now -ay 10/94 */
typedef struct GlobalMemory
typedef struct GlobalMemoryData
{
NodeTag type;
MemoryContextMethods method;
@@ -75,14 +75,14 @@ typedef struct GlobalMemory
typedef MemoryContext *PortalMemoryContext;
typedef struct PortalVariableMemory
typedef struct PortalVariableMemoryData
{
NodeTag type;
MemoryContextMethods method;
AllocSetData setData;
} *PortalVariableMemory;
typedef struct PortalHeapMemory
typedef struct PortalHeapMemoryData
{
NodeTag type;
MemoryContextMethods method;