| 359 | } |
| 360 | |
| 361 | static void DeallocateAligned(uint8_t* ptr, int64_t size, int64_t /*alignment*/) { |
| 362 | if (ptr == memory_pool::internal::kZeroSizeArea) { |
| 363 | DCHECK_EQ(size, 0); |
| 364 | } else { |
| 365 | #ifdef _WIN32 |
| 366 | _aligned_free(ptr); |
| 367 | #else |
| 368 | free(ptr); |
| 369 | #endif |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | static void ReleaseUnused() { |
| 374 | #ifdef __GLIBC__ |
nothing calls this directly
no outgoing calls
no test coverage detected