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

Function alloc_free_size

deps/jemalloc/test/unit/hook.c:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static void
29alloc_free_size(size_t sz) {
30 void *ptr = mallocx(1, 0);
31 free(ptr);
32 ptr = mallocx(1, 0);
33 free(ptr);
34 ptr = mallocx(1, MALLOCX_TCACHE_NONE);
35 dallocx(ptr, MALLOCX_TCACHE_NONE);
36}
37
38/*
39 * We want to support a degree of user reentrancy. This tests a variety of

Callers 1

be_reentrantFunction · 0.85

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected