File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -466,10 +466,10 @@ MemoryContextIsEmpty(MemoryContext context)
466466 * Find the memory allocated to blocks for this memory context. If recurse is
467467 * true, also include children.
468468 */
469- int64
469+ Size
470470MemoryContextMemAllocated (MemoryContext context , bool recurse )
471471{
472- int64 total = context -> mem_allocated ;
472+ Size total = context -> mem_allocated ;
473473
474474 AssertArg (MemoryContextIsValid (context ));
475475
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ extern void MemoryContextSetParent(MemoryContext context,
8282extern Size GetMemoryChunkSpace (void * pointer );
8383extern MemoryContext MemoryContextGetParent (MemoryContext context );
8484extern bool MemoryContextIsEmpty (MemoryContext context );
85- extern int64 MemoryContextMemAllocated (MemoryContext context , bool recurse );
85+ extern Size MemoryContextMemAllocated (MemoryContext context , bool recurse );
8686extern void MemoryContextStats (MemoryContext context );
8787extern void MemoryContextStatsDetail (MemoryContext context , int max_children );
8888extern void MemoryContextAllowInCriticalSection (MemoryContext context ,
You can’t perform that action at this time.
0 commit comments