* Returns true if the current thread is the owner thread, i.e., * the thread that initialized the memory protection subsystem * by calling GPMemoryProtect_Init() */
| 272 | * by calling GPMemoryProtect_Init() |
| 273 | */ |
| 274 | bool |
| 275 | MemoryProtection_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 |
no test coverage detected