src/backend/utils/mmgr/aset.c
static Size
AllocSetGetChunkSpace(MemoryContext context, void *pointer)
{
	AllocChunk	chunk = AllocPointerGetChunk(pointer);
	Size		result;

	VALGRIND_MAKE_MEM_DEFINED(chunk, ALLOCCHUNK_PRIVATE_LEN);
	result = chunk->size + ALLOC_CHUNKHDRSZ;
	VALGRIND_MAKE_MEM_NOACCESS(chunk, ALLOCCHUNK_PRIVATE_LEN);
	return result;
}
/*
 * AllocSetGetChunkSpace
 *		Given a currently-allocated chunk, determine the total space
 *		it occupies (including all memory-allocation overhead).
 */
AllocSetGetChunkSpace
Given a currently-allocated chunk, determine the total space
it occupies (including all memory-allocation overhead).
AllocSetGetChunkSpace Given a currently - allocated chunk determine the total space it occupies ( including all memory - allocation overhead ) .
static Size
AllocSetGetChunkSpace(MemoryContext context, void *pointer)
{
	AllocChunk	chunk = AllocPointerGetChunk(pointer);
	Size		result;
	VALGRIND_MAKE_MEM_DEFINED(chunk, ALLOCCHUNK_PRIVATE_LEN);
	result = chunk->size + ALLOC_CHUNKHDRSZ;
	VALGRIND_MAKE_MEM_NOACCESS(chunk, ALLOCCHUNK_PRIVATE_LEN);
	return result;
}
static Size AllocSetGetChunkSpace ( MemoryContext context , void * pointer ) { AllocChunk chunk = AllocPointerGetChunk ( pointer ) ; Size result ; VALGRIND_MAKE_MEM_DEFINED ( chunk , ALLOCCHUNK_PRIVATE_LEN ) ; result = chunk -> size + ALLOC_CHUNKHDRSZ ; VALGRIND_MAKE_MEM_NOACCESS ( chunk , ALLOCCHUNK_PRIVATE_LEN ) ; return result ; }
AllocSetGetChunkSpace
              Given a currently-allocated chunk, determine the total space
              it occupies (including all memory-allocation overhead).
AllocSetGetChunkSpace Given a currently - allocated chunk determine the total space it occupies ( including all memory - allocation overhead ) .