| 119 | } |
| 120 | |
| 121 | void 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 | |
| 130 | void JemallocAllocator::ReleaseUnused() { |
| 131 | mallctl("arena." ARROW_STRINGIFY(MALLCTL_ARENAS_ALL) ".purge", NULL, NULL, NULL, 0); |
nothing calls this directly
no outgoing calls
no test coverage detected