MCPcopy Create free account
hub / github.com/beefytech/Beef / SpanToMallocResult

Function SpanToMallocResult

BeefRT/gperftools/src/tcmalloc.cc:979–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979static inline void* SpanToMallocResult(Span *span) {
980 Static::pageheap()->CacheSizeClass(span->start, 0);
981 return
982 CheckedMallocResult(reinterpret_cast<void*>(span->start << kPageShift));
983}
984
985static void* DoSampledAllocation(size_t size) {
986 // Grab the stack trace outside the heap lock

Callers 5

DoSampledAllocationFunction · 0.70
do_malloc_pagesFunction · 0.70
do_memalignFunction · 0.70
BF_do_malloc_pagesFunction · 0.50
BF_do_malloc_pagesFunction · 0.50

Calls 1

CheckedMallocResultFunction · 0.70

Tested by

no test coverage detected