From 8c4d367f1757cadbc6c7b662754e15dba9d7e201 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Sun, 20 Oct 2019 10:19:35 -0500 Subject: [PATCH] Use background_thread:true and 1000ms decay --- cpp/src/arrow/memory_pool.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/memory_pool.cc b/cpp/src/arrow/memory_pool.cc index e8b9aaeceff3a..33feaef5ef604 100644 --- a/cpp/src/arrow/memory_pool.cc +++ b/cpp/src/arrow/memory_pool.cc @@ -46,10 +46,19 @@ // See discussion in https://github.com/jemalloc/jemalloc/issues/1621 #ifdef NDEBUG -const char* je_arrow_malloc_conf = "oversize_threshold:0,dirty_decay_ms:0,muzzy_decay_ms:0"; +const char* je_arrow_malloc_conf = + ("oversize_threshold:0," + "dirty_decay_ms:1000," + "muzzy_decay_ms:1000," + "background_thread:true"); #else // In debug mode, add memory poisoning on alloc / free -const char* je_arrow_malloc_conf = "oversize_threshold:0,junk:true"; +const char* je_arrow_malloc_conf = + ("oversize_threshold:0," + "junk:true," + "dirty_decay_ms:1000," + "muzzy_decay_ms:1000," + "background_thread:true"); #endif #endif