| 92 | #endif |
| 93 | |
| 94 | TEST(DefaultMemoryPool, Identity) { |
| 95 | // The default memory pool is pointer-identical to one of the backend-specific pools. |
| 96 | MemoryPool* pool = default_memory_pool(); |
| 97 | std::vector<MemoryPool*> specific_pools = {system_memory_pool()}; |
| 98 | #ifdef ARROW_JEMALLOC |
| 99 | specific_pools.push_back(nullptr); |
| 100 | ASSERT_OK(jemalloc_memory_pool(&specific_pools.back())); |
| 101 | #endif |
| 102 | #ifdef ARROW_MIMALLOC |
| 103 | specific_pools.push_back(nullptr); |
| 104 | ASSERT_OK(mimalloc_memory_pool(&specific_pools.back())); |
| 105 | #endif |
| 106 | ASSERT_NE(std::find(specific_pools.begin(), specific_pools.end(), pool), |
| 107 | specific_pools.end()); |
| 108 | } |
| 109 | |
| 110 | TEST(DefaultMemoryPoolDeathTest, Statistics) { |
| 111 | MemoryPool* pool = default_memory_pool(); |
nothing calls this directly
no test coverage detected