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

Function do_malloc

BeefRT/gperftools/src/tcmalloc.cc:1127–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125}
1126
1127inline void* do_malloc(size_t size) {
1128 void* ret = do_malloc_no_errno(size);
1129 if (UNLIKELY(ret == NULL)) errno = ENOMEM;
1130 return ret;
1131}
1132
1133inline void* do_calloc(size_t n, size_t elem_size) {
1134 // Overflow check

Callers 4

do_malloc_or_cpp_allocFunction · 0.70
do_memalignFunction · 0.70
cpp_allocFunction · 0.70
MarkThreadBusyMethod · 0.70

Calls 1

do_malloc_no_errnoFunction · 0.70

Tested by

no test coverage detected