35 throw std::logic_error(
"Calling mallctl when not using jemalloc.");
38 size_t outLen =
sizeof(
T);
39 int err =
mallctl(cmd, out, out ? &outLen :
nullptr, in, in ?
sizeof(
T) : 0);
64 mallctlRead<unsigned>(
cmd,
nullptr);
bool usingJEMalloc() noexcept
void mallctlCall(const char *cmd)
—— Concurrent Priority Queue Implementation ——
void mallctlReadWrite(const char *cmd, T *out, T in)
void mallctlRead(const char *cmd, T *out)
void mallctlHelper(const char *cmd, T *out, T *in)
int(* mallctl)(const char *, void *, size_t *, void *, size_t)
void mallctlWrite(const char *cmd, T in)
void handleMallctlError(const char *cmd, int err)