MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / get_nsizes_impl

Function get_nsizes_impl

deps/jemalloc/test/integration/mallocx.c:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "test/jemalloc_test.h"
2
3static unsigned
4get_nsizes_impl(const char *cmd) {
5 unsigned ret;
6 size_t z;
7
8 z = sizeof(unsigned);
9 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0,
10 "Unexpected mallctl(\"%s\", ...) failure", cmd);
11
12 return ret;
13}
14
15static unsigned
16get_nlarge(void) {

Callers 1

get_nlargeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected