Lines Matching refs:size
53 apr_size_t size;
72 apr_size_t size;
97 static apr_rmm_off_t find_block_of_size(apr_rmm_t *rmm, apr_size_t size)
106 if (blk->size == size)
109 if (blk->size >= size) {
114 if (!bestsize || (blk->size < bestsize)) {
115 bestsize = blk->size;
123 if (bestsize > RMM_BLOCK_SIZE + size) {
125 struct rmm_block_t *new = (rmm_block_t*)((char*)rmm->base + best + size);
127 new->size = blk->size - size;
131 blk->size = size;
132 blk->next = best + size;
136 blk->prev = best + size;
184 if (free && (blk->prev + prev->size == this)) {
186 prev->size += blk->size;
198 if (free && (this + blk->size == blk->next)) {
200 blk->size += next->size;
214 void *base, apr_size_t size,
232 (*rmm)->size = size;
235 (*rmm)->base->abssize = size;
241 blk->size = size - (*rmm)->base->firstfree;
276 rmm->size = 0;
296 (*rmm)->size = (*rmm)->base->abssize;
309 apr_size_t size;
312 size = APR_ALIGN_DEFAULT(reqsize) + RMM_BLOCK_SIZE;
313 if (size < reqsize) {
319 this = find_block_of_size(rmm, size);
332 apr_size_t size;
335 size = APR_ALIGN_DEFAULT(reqsize) + RMM_BLOCK_SIZE;
336 if (size < reqsize) {
342 this = find_block_of_size(rmm, size);
347 memset((char*)rmm->base + this, 0, size - RMM_BLOCK_SIZE);
360 apr_size_t size, oldsize;
366 size = APR_ALIGN_DEFAULT(reqsize);
367 if (size < reqsize) {
372 if ((this = apr_rmm_malloc(rmm, size)) == 0) {
377 oldsize = blk->size;
380 apr_rmm_addr_get(rmm, old), oldsize < size ? oldsize : size);
454 * for alignment overhead, plus the size of the rmm_block_t