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