MCPcopy Create free account
hub / github.com/apache/arrow / default_memory_pool

Function default_memory_pool

cpp/src/arrow/memory_pool.cc:664–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664MemoryPool* default_memory_pool() {
665 auto backend = DefaultBackend();
666 switch (backend) {
667 case MemoryPoolBackend::System:
668 return global_state.system_memory_pool();
669#ifdef ARROW_JEMALLOC
670 case MemoryPoolBackend::Jemalloc:
671 return global_state.jemalloc_memory_pool();
672#endif
673#ifdef ARROW_MIMALLOC
674 case MemoryPoolBackend::Mimalloc:
675 return global_state.mimalloc_memory_pool();
676#endif
677 default:
678 ARROW_LOG(FATAL) << "Internal error: cannot create default memory pool";
679 return nullptr;
680 }
681}
682
683#ifndef ARROW_JEMALLOC
684Status jemalloc_set_decay_ms(int ms) {

Calls 4

DefaultBackendFunction · 0.85
system_memory_poolMethod · 0.80
jemalloc_memory_poolMethod · 0.80
mimalloc_memory_poolMethod · 0.80

Tested by 15

TEST_FFunction · 0.68
BuildArrayFunction · 0.68
TESTFunction · 0.68
memory_poolMethod · 0.68
TESTFunction · 0.68
ASSERT_OK_AND_ASSIGNFunction · 0.68
TESTFunction · 0.68
CheckPrimitiveFunction · 0.68
TEST_FFunction · 0.68
TestWritesMethod · 0.68
SetUpMethod · 0.68