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

Function malloc_free_loop

deps/jemalloc/test/stress/hookbench.c:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19static void
20malloc_free_loop(int iters) {
21 for (int i = 0; i < iters; i++) {
22 void *p = mallocx(1, 0);
23 free(p);
24 }
25}
26
27static void
28test_hooked(int iters) {

Callers 2

test_hookedFunction · 0.85
test_unhookedFunction · 0.85

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected