41#ifdef MEMORY_CONTEXT_CHECKING
44 elog(
WARNING,
"detected write past chunk end in %s %p",
104#ifdef MEMORY_CONTEXT_CHECKING
MemoryContext AlignedAllocGetChunkContext(void *pointer)
void * AlignedAllocRealloc(void *pointer, Size size, int flags)
Size AlignedAllocGetChunkSpace(void *pointer)
void AlignedAllocFree(void *pointer)
#define Assert(condition)
void pfree(void *pointer)
Size GetMemoryChunkSpace(void *pointer)
void * MemoryContextAllocAligned(MemoryContext context, Size size, Size alignto, int flags)
MemoryContext GetMemoryChunkContext(void *pointer)
void * MemoryContextAllocationFailure(MemoryContext context, Size size, int flags)
#define VALGRIND_MAKE_MEM_DEFINED(addr, size)
#define VALGRIND_MEMPOOL_ALLOC(context, addr, size)
#define VALGRIND_MAKE_MEM_NOACCESS(addr, size)
#define PallocAlignedExtraBytes(alignto)
static Size MemoryChunkGetValue(MemoryChunk *chunk)
static bool MemoryChunkIsExternal(MemoryChunk *chunk)
static void * MemoryChunkGetBlock(MemoryChunk *chunk)
#define PointerGetMemoryChunk(p)