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

Function check_background_thread_enabled

deps/jemalloc/test/integration/extent.c:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "test/extent_hooks.h"
4
5static bool
6check_background_thread_enabled(void) {
7 bool enabled;
8 size_t sz = sizeof(bool);
9 int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0);
10 if (ret == ENOENT) {
11 return false;
12 }
13 assert_d_eq(ret, 0, "Unexpected mallctl error");
14 return enabled;
15}
16
17static void
18test_extent_body(unsigned arena_ind) {

Callers 2

test_manual_hook_bodyFunction · 0.70
TEST_BEGINFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected