mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Use aligned deallocator
Change-Id: I1b51b057c3955541f22f648be9fe0ed8fb90e6c0
This commit is contained in:
1 parent
20c85052aa
commit
dc5abdb312
1 file changed
+1
-1
@@ -65,7 +65,7 @@ Status MemoryPool::Reallocate(int64_t old_size, int64_t new_size, uint8_t** ptr)
|
||||
|
||||
void MemoryPool::Free(uint8_t* buffer, int64_t size) {
|
||||
allocated_size_ -= size;
|
||||
free(buffer);
|
||||
dallocx(buffer, MALLOCX_ALIGN(kAlignment));
|
||||
}
|
||||
|
||||
int64_t MemoryPool::bytes_allocated() const {
|
||||
|
||||
Reference in new issue
Block a user