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

Method DidReallocateBytes

cpp/src/arrow/memory_pool.h:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 inline void DidReallocateBytes(int64_t old_size, int64_t new_size) {
91 if (new_size > old_size) {
92 DidAllocateBytes(new_size - old_size);
93 } else {
94 DidFreeBytes(old_size - new_size);
95 }
96 }
97
98 inline void DidFreeBytes(int64_t size) {
99 bytes_allocated_.fetch_sub(size, std::memory_order_acq_rel);

Callers 3

ReallocateMethod · 0.80
ReallocateMethod · 0.80
ReallocateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected