Skip to content

Commit 8c4d367

Browse files
committed
Use background_thread:true and 1000ms decay
1 parent daa5416 commit 8c4d367

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cpp/src/arrow/memory_pool.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,19 @@
4646
// See discussion in https://github.com/jemalloc/jemalloc/issues/1621
4747

4848
#ifdef NDEBUG
49-
const char* je_arrow_malloc_conf = "oversize_threshold:0,dirty_decay_ms:0,muzzy_decay_ms:0";
49+
const char* je_arrow_malloc_conf =
50+
("oversize_threshold:0,"
51+
"dirty_decay_ms:1000,"
52+
"muzzy_decay_ms:1000,"
53+
"background_thread:true");
5054
#else
5155
// In debug mode, add memory poisoning on alloc / free
52-
const char* je_arrow_malloc_conf = "oversize_threshold:0,junk:true";
56+
const char* je_arrow_malloc_conf =
57+
("oversize_threshold:0,"
58+
"junk:true,"
59+
"dirty_decay_ms:1000,"
60+
"muzzy_decay_ms:1000,"
61+
"background_thread:true");
5362
#endif
5463
#endif
5564

0 commit comments

Comments
 (0)