Lines Matching refs:next

71  *		   to the next block of any sort.
94 * freed and reallocated on the next call to malloc. The
276 * +-->| next | +-->| next |
390 * the next space. If not, mark holdblk full,
394 /* move to next holdblk, if this one full */
457 * freeptr[1].next = &arena[0], so when you do the test,
468 struct header *next; /* following block */
469 struct header *nextnext; /* block after next */
475 next = blk->nextblk;
476 if (!TESTBUSY(nextnext = next->nextblk)) {
478 DELFREEQ(next);
479 next = nextnext;
480 nextnext = next->nextblk;
483 * next will be at most == to lastblk,
486 if (next >= arenaend)
488 blk->nextblk = next;
490 } while (((char *)(next) - (char *)blk) < nb);
589 struct header *nblk; /* next block */
632 * block pointing to the next block
690 struct header *next; /* next = blk->nextblk */
691 struct header *nextnext; /* block after next */
694 next = blk->nextblk;
696 if (!TESTBUSY(next))
698 blk->nextblk = next = CLRBUSY(next);
701 if (!TESTBUSY(nextnext = next->nextblk)) {
703 DELFREEQ(next);
704 next = nextnext;
705 } while (!TESTBUSY(nextnext = next->nextblk));
706 if (next == arenaend) lastblk = blk;
707 blk->nextblk = next;
742 struct header *next; /* block after blk */
776 next = blk->nextblk;
783 if (!TESTBUSY(next)) {
785 blk->nextblk = SETBUSY(next);
787 next = CLRBUSY(next);
789 if (!TESTBUSY(next->nextblk)) {
791 DELFREEQ(next);
792 next = next->nextblk;
793 } while (!TESTBUSY(next->nextblk));
794 blk->nextblk = SETBUSY(next);
795 if (next >= arenaend) lastblk = blk;
803 cpysize = (char *)next - (char *)blk;
815 newblk->nextblk = next;
817 /* at this point, next is invalid */
882 * M_KEEP Retain data in freed block until the next malloc,
958 struct header *blk, *next; /* ptr to ordinary blocks */
979 next = CLRBUSY(blk->nextblk);
980 while (next != &(arena[1])) {
982 size = (char *)next - (char *)blk;
989 blk = next;
990 next = CLRBUSY(blk->nextblk);
1089 struct header *blk, *prev, *next; /* ptr to ordinary blocks */
1100 next = (struct header *)CLRALL(blk->nextblk);
1101 while (next != arena + 1) {
1104 assert(next >= blk + 1);
1118 blk = next;
1119 next = CLRBUSY(blk->nextblk);