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

Function alignedSizedDeleteImpl

BeefRT/JEMalloc/src/jemalloc_cpp.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210#if __cpp_aligned_new >= 201606
211
212JEMALLOC_ALWAYS_INLINE
213void
214alignedSizedDeleteImpl(void* ptr, std::size_t size, std::align_val_t alignment) noexcept {
215 if (config_debug) {
216 assert(((size_t)alignment & ((size_t)alignment - 1)) == 0);
217 }
218 if (unlikely(ptr == nullptr)) {
219 return;
220 }
221 je_sdallocx(ptr, size, MALLOCX_ALIGN(alignment));
222}
223
224void
225operator delete(void* ptr, std::align_val_t) noexcept {

Callers 2

operator deleteFunction · 0.85
operator delete[]Function · 0.85

Calls 1

je_sdallocxFunction · 0.85

Tested by

no test coverage detected