• Home
  • Raw
  • Download

Lines Matching refs:rsize

4254       size_t rsize = m->topsize -= nb;  in sys_alloc()  local
4257 r->head = rsize | PINUSE_BIT; in sys_alloc()
4460 size_t rsize = -nb; /* Unsigned negation */ in tmalloc_large() local
4471 if (trem < rsize) { in tmalloc_large()
4473 if ((rsize = trem) == 0) in tmalloc_large()
4499 if (trem < rsize) { in tmalloc_large()
4500 rsize = trem; in tmalloc_large()
4507 if (v != 0 && rsize < (size_t)(m->dvsize - nb)) { in tmalloc_large()
4510 assert(chunksize(v) == rsize + nb); in tmalloc_large()
4513 if (rsize < MIN_CHUNK_SIZE) in tmalloc_large()
4514 set_inuse_and_pinuse(m, v, (rsize + nb)); in tmalloc_large()
4517 set_size_and_pinuse_of_free_chunk(r, rsize); in tmalloc_large()
4518 insert_chunk(m, r, rsize); in tmalloc_large()
4531 size_t rsize; in tmalloc_small() local
4536 rsize = chunksize(t) - nb; in tmalloc_small()
4540 if (trem < rsize) { in tmalloc_small()
4541 rsize = trem; in tmalloc_small()
4548 assert(chunksize(v) == rsize + nb); in tmalloc_small()
4551 if (rsize < MIN_CHUNK_SIZE) in tmalloc_small()
4552 set_inuse_and_pinuse(m, v, (rsize + nb)); in tmalloc_small()
4555 set_size_and_pinuse_of_free_chunk(r, rsize); in tmalloc_small()
4556 replace_dv(m, r, rsize); in tmalloc_small()
4622 size_t rsize; in dlmalloc() local
4631 rsize = small_index2size(i) - nb; in dlmalloc()
4633 if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE) in dlmalloc()
4638 set_size_and_pinuse_of_free_chunk(r, rsize); in dlmalloc()
4639 replace_dv(gm, r, rsize); in dlmalloc()
4663 size_t rsize = gm->dvsize - nb; in dlmalloc() local
4665 if (rsize >= MIN_CHUNK_SIZE) { /* split dv */ in dlmalloc()
4667 gm->dvsize = rsize; in dlmalloc()
4668 set_size_and_pinuse_of_free_chunk(r, rsize); in dlmalloc()
4683 size_t rsize = gm->topsize -= nb; in dlmalloc() local
4686 r->head = rsize | PINUSE_BIT; in dlmalloc()
4851 size_t rsize = oldsize - nb; in try_realloc_chunk() local
4852 if (rsize >= MIN_CHUNK_SIZE) { /* split off remainder */ in try_realloc_chunk()
4855 set_inuse(m, r, rsize); in try_realloc_chunk()
4856 dispose_chunk(m, r, rsize); in try_realloc_chunk()
4897 size_t rsize = oldsize + nextsize - nb; in try_realloc_chunk() local
4899 if (rsize < MIN_CHUNK_SIZE) { in try_realloc_chunk()
4906 set_inuse(m, r, rsize); in try_realloc_chunk()
4907 dispose_chunk(m, r, rsize); in try_realloc_chunk()
5570 size_t rsize; in mspace_malloc() local
5579 rsize = small_index2size(i) - nb; in mspace_malloc()
5581 if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE) in mspace_malloc()
5586 set_size_and_pinuse_of_free_chunk(r, rsize); in mspace_malloc()
5587 replace_dv(ms, r, rsize); in mspace_malloc()
5611 size_t rsize = ms->dvsize - nb; in mspace_malloc() local
5613 if (rsize >= MIN_CHUNK_SIZE) { /* split dv */ in mspace_malloc()
5615 ms->dvsize = rsize; in mspace_malloc()
5616 set_size_and_pinuse_of_free_chunk(r, rsize); in mspace_malloc()
5631 size_t rsize = ms->topsize -= nb; in mspace_malloc() local
5634 r->head = rsize | PINUSE_BIT; in mspace_malloc()