MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / allocate

Function allocate

crates/memtrack/testdata/nested_operator_new.cpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static void* volatile escaped_pointer;
18
19extern "C" __attribute__((noinline)) void allocate() {
20 Payload* value = new Payload();
21 escaped_pointer = value;
22 delete value;
23}
24
25static unsigned long uprobes_mapping_start() {
26 FILE* maps = std::fopen("/proc/self/maps", "r");

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected