Commit db0244ad authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

fix the flipped condition in MemoryIdler

Reviewed By: philippv

Differential Revision: D27535007

fbshipit-source-id: 384235553b18320fa9728740f7f1b83b4c8b0a1a
parent ab0952cb
......@@ -55,7 +55,7 @@ void MemoryIdler::flushLocalMallocCaches() {
// Not using mallctlCall as this will fail if tcache is disabled.
mallctl("thread.tcache.flush", nullptr, nullptr, nullptr, 0);
if (!FLAGS_folly_memory_idler_purge_arenas) {
if (FLAGS_folly_memory_idler_purge_arenas) {
try {
// By default jemalloc has 4 arenas per cpu, and then assigns each
// thread to one of those arenas. This means that in any service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment