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