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

Function default_memory_pool

cpp/src/arrow/memory_pool.cc:669–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669MemoryPool* default_memory_pool() {
670 auto backend = DefaultBackend();
671 switch (backend) {
672 case MemoryPoolBackend::System:
673 return global_state.system_memory_pool();
674#ifdef ARROW_JEMALLOC
675 case MemoryPoolBackend::Jemalloc:
676 return global_state.jemalloc_memory_pool();
677#endif
678#ifdef ARROW_MIMALLOC
679 case MemoryPoolBackend::Mimalloc:
680 return global_state.mimalloc_memory_pool();
681#endif
682 default:
683 ARROW_LOG(FATAL) << "Internal error: cannot create default memory pool";
684 return nullptr;
685 }
686}
687
688#ifndef ARROW_JEMALLOC
689Status 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

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
WriteMethod · 0.68
ASSERT_OK_AND_ASSIGNFunction · 0.68