MCPcopy Create free account
hub / github.com/apache/arrow / DeallocateAligned

Method DeallocateAligned

cpp/src/arrow/memory_pool_jemalloc.cc:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void JemallocAllocator::DeallocateAligned(uint8_t* ptr, int64_t size, int64_t alignment) {
122 if (ptr == kZeroSizeArea) {
123 DCHECK_EQ(size, 0);
124 } else {
125 sdallocx(ptr, static_cast<size_t>(size),
126 MALLOCX_ALIGN(static_cast<size_t>(alignment)));
127 }
128}
129
130void JemallocAllocator::ReleaseUnused() {
131 mallctl("arena." ARROW_STRINGIFY(MALLCTL_ARENAS_ALL) ".purge", NULL, NULL, NULL, 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected