Home | History | Annotate | Download | only in binder

Lines Matching refs:cur

313     chunk_t* cur = mList.head();
316 while (cur) {
319 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ;
322 if (cur->free && (cur->size >= (size+extra))) {
323 if ((!free_chunk) || (cur->size < free_chunk->size)) {
324 free_chunk = cur;
326 if (cur->size == size) {
330 cur = cur->next;
366 chunk_t* cur = mList.head();
367 while (cur) {
368 if (cur->start == start) {
369 LOG_FATAL_IF(cur->free,
371 cur->start*kMemoryAlign, cur->size*kMemoryAlign);
374 chunk_t* freed = cur;
375 cur->free = 1;
377 chunk_t* const p = cur->prev;
378 chunk_t* const n = cur->next;
379 if (p && (p->free || !cur->size)) {
381 p->size += cur->size;
382 mList.remove(cur);
383 delete cur;
385 cur = n;
386 } while (cur && cur->free);
399 cur = cur->next;
429 chunk_t const* cur = mList.head();
438 while (cur) {
441 int np = ((cur->next) && cur->next->prev != cur) ? 1 : 0;
442 int pn = ((cur->prev) && cur->prev->next != cur) ? 2 : 0;
445 i, int(cur), int(cur->start*kMemoryAlign),
446 int(cur->size*kMemoryAlign),
447 int(cur->free) ? "F" : "A",
452 if (!cur->free)
453 size += cur->size*kMemoryAlign;
456 cur = cur->next;