| 658 | } |
| 659 | |
| 660 | Status mimalloc_memory_pool(MemoryPool** out) { |
| 661 | #ifdef ARROW_MIMALLOC |
| 662 | *out = global_state.mimalloc_memory_pool(); |
| 663 | return Status::OK(); |
| 664 | #else |
| 665 | return Status::NotImplemented("This Arrow build does not enable mimalloc"); |
| 666 | #endif |
| 667 | } |
| 668 | |
| 669 | MemoryPool* default_memory_pool() { |
| 670 | auto backend = DefaultBackend(); |