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

Function TEST_BEGIN

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

Source from the content-addressed store, hash-verified

221 try_split = try_merge = try_purge_lazy = try_purge_forced = true;
222}
223TEST_END
224
225TEST_BEGIN(test_extent_auto_hook) {
226 unsigned arena_ind;
227 size_t new_size, sz;
228 extent_hooks_t *new_hooks;
229
230 extent_hooks_prep();
231
232 sz = sizeof(unsigned);
233 new_hooks = &hooks;
234 new_size = sizeof(extent_hooks_t *);
235 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz,
236 (void *)&new_hooks, new_size), 0, "Unexpected mallctl() failure");
237
238 test_skip_if(check_background_thread_enabled());
239 test_extent_body(arena_ind);
240}
241TEST_END
242
243int

Callers

nothing calls this directly

Calls 3

test_extent_bodyFunction · 0.70
extent_hooks_prepFunction · 0.50

Tested by

no test coverage detected