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

Function MemoryProtection_IsOwnerThread

src/backend/utils/mmgr/memprot.c:274–278  ·  view source on GitHub ↗

* Returns true if the current thread is the owner thread, i.e., * the thread that initialized the memory protection subsystem * by calling GPMemoryProtect_Init() */

Source from the content-addressed store, hash-verified

272 * by calling GPMemoryProtect_Init()
273 */
274bool
275MemoryProtection_IsOwnerThread()
276{
277 return pthread_equal(memprotOwnerThread, pthread_self());
278}
279
280/*
281 * gp_failed_to_alloc is called upon an OOM. We can have either a VMEM

Callers 7

gp_failed_to_allocFunction · 0.85
gp_mallocFunction · 0.85
gp_reallocFunction · 0.85
gp_freeFunction · 0.85

Calls 1

pthread_selfFunction · 0.85

Tested by

no test coverage detected