| 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); |
no outgoing calls
no test coverage detected