Lines Matching refs:cur
160 chunk_t* cur = *p; in alloc() local
162 if (flags & PAGE_ALIGNED) extra = (-cur->start & ((pagesize / kMemoryAlign) - 1)); in alloc()
165 if (cur->free && (cur->size >= (size + extra))) { in alloc()
166 if ((free_chunk_p == mList.end()) || (cur->size < (*free_chunk_p)->size)) { in alloc()
169 if (cur->size == size) { in alloc()
208 chunk_t* cur = *pos; in dealloc() local
209 if (cur->start == start) { in dealloc()
210 LOG_FATAL_IF(cur->free, "block at offset 0x%08lX of size 0x%08lX already freed", in dealloc()
211 cur->start * kMemoryAlign, cur->size * kMemoryAlign); in dealloc()
214 chunk_t* freed = cur; in dealloc()
215 cur->free = 1; in dealloc()
221 if (p->free || !cur->size) { in dealloc()
223 p->size += cur->size; in dealloc()
225 delete cur; in dealloc()
230 cur = *pos; in dealloc()
231 } while (cur && cur->free); in dealloc()
273 chunk_t const* cur = *pos; in dump_l() local
275 if (!cur->free) size += cur->size * kMemoryAlign; in dump_l()