Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
static void
20
malloc_free_loop(int iters) {
21
for (int i = 0; i < iters; i++) {
22
void *p = mallocx(1, 0);
23
free(p);
24
}
25
}
26
27
static void
28
test_hooked(int iters) {
Callers
2
test_hooked
Function · 0.85
test_unhooked
Function · 0.85
Calls
1
free
Function · 0.85
Tested by
no test coverage detected