MCPcopy Create free account
hub / github.com/apache/cloudberry / init_memory_context

Function init_memory_context

contrib/interconnect/test/ic_bench.c:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static void
75init_memory_context()
76{
77 if (NULL == TopMemoryContext)
78 {
79 assert(NULL == testMemoryContext);
80 MemoryContextInit();
81
82 testMemoryContext = AllocSetContextCreate(TopMemoryContext,
83 "Test Context",
84 ALLOCSET_DEFAULT_MINSIZE,
85 ALLOCSET_DEFAULT_INITSIZE,
86 ALLOCSET_DEFAULT_MAXSIZE);
87
88 MemoryContextSwitchTo(testMemoryContext);
89 }
90}
91
92static void
93destroy_memory_context()

Callers 2

client_loopFunction · 0.85
server_loopFunction · 0.85

Calls 2

MemoryContextInitFunction · 0.85
MemoryContextSwitchToFunction · 0.85

Tested by

no test coverage detected