Home | History | Annotate | Download | only in binder

Lines Matching refs:cur

325     chunk_t* cur = mList.head();
328 while (cur) {
331 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ;
334 if (cur->free && (cur->size >= (size+extra))) {
335 if ((!free_chunk) || (cur->size < free_chunk->size)) {
336 free_chunk = cur;
338 if (cur->size == size) {
342 cur = cur->next;
378 chunk_t* cur = mList.head();
379 while (cur) {
380 if (cur->start == start) {
381 LOG_FATAL_IF(cur->free,
383 cur->start*kMemoryAlign, cur->size*kMemoryAlign);
386 chunk_t* freed = cur;
387 cur->free = 1;
389 chunk_t* const p = cur->prev;
390 chunk_t* const n = cur->next;
391 if (p && (p->free || !cur->size)) {
393 p->size += cur->size;
394 mList.remove(cur);
395 delete cur;
397 cur = n;
398 } while (cur && cur->free);
411 cur = cur->next;
441 chunk_t const* cur = mList.head();
450 while (cur) {
453 int np = ((cur->next) && cur->next->prev != cur) ? 1 : 0;
454 int pn = ((cur->prev) && cur->prev->next != cur) ? 2 : 0;
457 i, cur, int(cur->start*kMemoryAlign),
458 int(cur->size*kMemoryAlign),
459 int(cur->free) ? "F" : "A",
464 if (!cur->free)
465 size += cur->size*kMemoryAlign;
468 cur = cur->next;