| 644 | MemoryPool* system_memory_pool() { return global_state.system_memory_pool(); } |
| 645 | |
| 646 | Status jemalloc_memory_pool(MemoryPool** out) { |
| 647 | #ifdef ARROW_JEMALLOC |
| 648 | *out = global_state.jemalloc_memory_pool(); |
| 649 | return Status::OK(); |
| 650 | #else |
| 651 | return Status::NotImplemented("This Arrow build does not enable jemalloc"); |
| 652 | #endif |
| 653 | } |
| 654 | |
| 655 | Status mimalloc_memory_pool(MemoryPool** out) { |
| 656 | #ifdef ARROW_MIMALLOC |