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

Function tc_newarray

BeefRT/gperftools/src/debugallocation.cc:1243–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243extern "C" PERFTOOLS_DLL_DECL void* tc_newarray(size_t size) {
1244 void* ptr = debug_cpp_alloc(size, MallocBlock::kArrayNewType, false);
1245 MallocHook::InvokeNewHook(ptr, size);
1246 if (ptr == NULL) {
1247 RAW_LOG(FATAL, "Unable to allocate %" PRIuS " bytes: new[] failed.", size);
1248 }
1249 return ptr;
1250}
1251
1252extern "C" PERFTOOLS_DLL_DECL void* tc_newarray_nothrow(size_t size, const std::nothrow_t&)
1253 __THROW {

Callers

nothing calls this directly

Calls 2

debug_cpp_allocFunction · 0.70
RAW_LOGFunction · 0.50

Tested by

no test coverage detected