MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / calloc_hook_dummy

Function calloc_hook_dummy

src/mallocTracer.cpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51// Make sure this is not optimized away (function-scoped -fno-optimize-sibling-calls)
52extern "C" NO_OPTIMIZE
53void* calloc_hook_dummy(size_t num, size_t size) {
54 return _orig_calloc(num, size);
55}
56
57extern "C" void* realloc_hook(void* addr, size_t size) {
58 void* ret = _orig_realloc(addr, size);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected