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

Function fallback_impl

BeefRT/JEMalloc/src/jemalloc_cpp.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <bool IsNoExcept>
95JEMALLOC_NOINLINE
96static void *
97fallback_impl(std::size_t size) noexcept(IsNoExcept) {
98 void *ptr = malloc_default(size);
99 if (likely(ptr != nullptr)) {
100 return ptr;
101 }
102 return handleOOM(size, IsNoExcept);
103}
104
105template <bool IsNoExcept>
106JEMALLOC_ALWAYS_INLINE

Callers

nothing calls this directly

Calls 2

malloc_defaultFunction · 0.85
handleOOMFunction · 0.85

Tested by

no test coverage detected