Lines Matching refs:next

72  *		   to the next block of any sort.
95 * freed and reallocated on the next call to malloc. The
277 * +-->| next | +-->| next |
391 * the next space. If not, mark holdblk full,
395 /* move to next holdblk, if this one full */
458 * freeptr[1].next = &arena[0], so when you do the test,
469 struct header *next; /* following block */
470 struct header *nextnext; /* block after next */
476 next = blk->nextblk;
477 if (!TESTBUSY(nextnext = next->nextblk)) {
479 DELFREEQ(next);
480 next = nextnext;
481 nextnext = next->nextblk;
484 * next will be at most == to lastblk,
487 if (next >= arenaend)
489 blk->nextblk = next;
491 } while (((char *)(next) - (char *)blk) < nb);
590 struct header *nblk; /* next block */
633 * block pointing to the next block
691 struct header *next; /* next = blk->nextblk */
692 struct header *nextnext; /* block after next */
695 next = blk->nextblk;
697 if (!TESTBUSY(next))
699 blk->nextblk = next = CLRBUSY(next);
702 if (!TESTBUSY(nextnext = next->nextblk)) {
704 DELFREEQ(next);
705 next = nextnext;
706 } while (!TESTBUSY(nextnext = next->nextblk));
707 if (next == arenaend) lastblk = blk;
708 blk->nextblk = next;
743 struct header *next; /* block after blk */
777 next = blk->nextblk;
784 if (!TESTBUSY(next)) {
786 blk->nextblk = SETBUSY(next);
788 next = CLRBUSY(next);
790 if (!TESTBUSY(next->nextblk)) {
792 DELFREEQ(next);
793 next = next->nextblk;
794 } while (!TESTBUSY(next->nextblk));
795 blk->nextblk = SETBUSY(next);
796 if (next >= arenaend) lastblk = blk;
804 cpysize = (char *)next - (char *)blk;
816 newblk->nextblk = next;
818 /* at this point, next is invalid */
892 * M_KEEP Retain data in freed block until the next malloc,
968 struct header *blk, *next; /* ptr to ordinary blocks */
989 next = CLRBUSY(blk->nextblk);
990 while (next != &(arena[1])) {
992 size = (char *)next - (char *)blk;
999 blk = next;
1000 next = CLRBUSY(blk->nextblk);
1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */
1110 next = (struct header *)CLRALL(blk->nextblk);
1111 while (next != arena + 1) {
1114 assert(next >= blk + 1);
1128 blk = next;
1129 next = CLRBUSY(blk->nextblk);