Commit c797a08c authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Fix the build of MallctlHelperTest without JEMalloc

Summary:
`kDecayCmd` was guarded such that it wasn't being defined at all if JEMalloc wasn't available.

Closes https://github.com/facebook/folly/issues/608

Reviewed By: interwq

Differential Revision: D5193721

fbshipit-source-id: 1a2666de70e90eac1e9f2e130d0452b01b3239fa
parent 1e6a1dce
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
using namespace folly; using namespace folly;
#ifdef FOLLY_HAVE_LIBJEMALLOC
#if JEMALLOC_VERSION_MAJOR > 4 #if JEMALLOC_VERSION_MAJOR > 4
static constexpr char const* kDecayCmd = "arena.0.dirty_decay_ms"; static constexpr char const* kDecayCmd = "arena.0.dirty_decay_ms";
const char* malloc_conf = "dirty_decay_ms:10"; const char* malloc_conf = "dirty_decay_ms:10";
...@@ -33,7 +32,6 @@ const char* malloc_conf = "dirty_decay_ms:10"; ...@@ -33,7 +32,6 @@ const char* malloc_conf = "dirty_decay_ms:10";
static constexpr char const* kDecayCmd = "arena.0.decay_time"; static constexpr char const* kDecayCmd = "arena.0.decay_time";
const char* malloc_conf = "purge:decay,decay_time:10"; const char* malloc_conf = "purge:decay,decay_time:10";
#endif #endif
#endif
class MallctlHelperTest : public ::testing::Test { class MallctlHelperTest : public ::testing::Test {
protected: protected:
......
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