| 507 | } |
| 508 | |
| 509 | void Free(uint8_t* buffer, int64_t size, int64_t alignment) override { |
| 510 | #ifndef NDEBUG |
| 511 | // Poison data |
| 512 | if (size > 0) { |
| 513 | DCHECK_NE(buffer, nullptr); |
| 514 | buffer[0] = kDeallocPoison; |
| 515 | buffer[size - 1] = kDeallocPoison; |
| 516 | } |
| 517 | #endif |
| 518 | Allocator::DeallocateAligned(buffer, size, alignment); |
| 519 | |
| 520 | stats_.DidFreeBytes(size); |
| 521 | } |
| 522 | |
| 523 | void ReleaseUnused() override { Allocator::ReleaseUnused(); } |
| 524 |
nothing calls this directly
no test coverage detected