Skip to content

Commit

Permalink
Use background_thread:true and 1000ms decay
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Oct 21, 2019
1 parent daa5416 commit 8c4d367
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cpp/src/arrow/memory_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8c4d367

Please sign in to comment.