| 492 | |
| 493 | #ifndef _MSC_VER |
| 494 | static void FreeAllLargeBlockMem() { |
| 495 | for (auto& lbFreePtr : lbFreePtrs) { |
| 496 | for (int i = 0; i < LB_BUF_SIZE; ++i) { |
| 497 | void* p = lbFreePtr[i]; |
| 498 | if (p == nullptr) |
| 499 | continue; |
| 500 | if (DoCas(&lbFreePtr[i], (void*)nullptr, p) == p) { |
| 501 | int pgCount = TLargeBlk::As(p)->Pages; |
| 502 | AtomicAdd(lbFreePageCount, -pgCount); |
| 503 | LargeBlockUnmap(p, pgCount); |
| 504 | } |
| 505 | } |
| 506 | } |
| 507 | } |
| 508 | #endif |
| 509 | |
| 510 | static void LargeBlockFree(void* p, ELFAllocCounter counter) { |
no test coverage detected