| 260 | static volatile int freeChunkCount; |
| 261 | |
| 262 | static void AddFreeChunk(uintptr_t chunkId) { |
| 263 | chunkSizeIdx[chunkId] = -1; |
| 264 | if (Y_UNLIKELY(freeChunkCount == FREE_CHUNK_ARR_BUF)) |
| 265 | NMalloc::AbortFromCorruptedAllocator("free chunks array overflowed"); |
| 266 | freeChunkArr[freeChunkCount++] = chunkId; |
| 267 | } |
| 268 | |
| 269 | static bool GetFreeChunk(uintptr_t* res) { |
| 270 | if (freeChunkCount == 0) { |
no test coverage detected