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

Function ShmemBackendArrayAllocation

src/backend/postmaster/postmaster.c:7243–7251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7241}
7242
7243void
7244ShmemBackendArrayAllocation(void)
7245{
7246 Size size = ShmemBackendArraySize();
7247
7248 ShmemBackendArray = (Backend *) ShmemAlloc(size);
7249 /* Mark all slots as empty */
7250 memset(ShmemBackendArray, 0, size);
7251}
7252
7253static void
7254ShmemBackendArrayAdd(Backend *bn)

Callers 1

Calls 2

ShmemBackendArraySizeFunction · 0.85
ShmemAllocFunction · 0.85

Tested by

no test coverage detected