23 #if defined(FOLLY_USE_JEMALLOC) && !FOLLY_SANITIZE 24 #include <jemalloc/jemalloc.h> 27 using namespace folly;
29 #if JEMALLOC_VERSION_MAJOR > 4 30 static constexpr
char const*
kDecayCmd =
"arena.0.dirty_decay_ms";
33 static constexpr
char const*
kDecayCmd =
"arena.0.decay_time";
41 ssize_t decayTime = 10;
46 ssize_t decayTime = 0;
53 ssize_t decayTime = 0;
59 ssize_t decayTime = 0;
65 ssize_t decayTime = 20;
71 ssize_t decayTime = 20;
77 ssize_t oldDecayTime = 0;
78 ssize_t newDecayTime = 20;
85 ssize_t oldDecayTime = 0;
86 ssize_t newDecayTime = 20;
#define EXPECT_NO_THROW(statement)
#define EXPECT_THROW(statement, expected_exception)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
bool usingJEMalloc() noexcept
#define EXPECT_EQ(val1, val2)
void mallctlCall(const char *cmd)
static constexpr char const * kDecayCmd
—— Concurrent Priority Queue Implementation ——
void mallctlReadWrite(const char *cmd, T *out, T in)
void mallctlRead(const char *cmd, T *out)
void init(int *argc, char ***argv, bool removeFlags)
TEST_F(AsyncSSLSocketWriteTest, write_coalescing1)
void mallctlWrite(const char *cmd, T in)
static ssize_t readArena0DecayTime()
int main(int argc, char **argv)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)