Lines Matching refs:chunk_size
321 sljit_uw chunk_size; in sljit_malloc_exec() local
332 chunk_size = free_block->size; in sljit_malloc_exec()
333 if (chunk_size > size + 64) { in sljit_malloc_exec()
335 chunk_size -= size; in sljit_malloc_exec()
336 free_block->size = chunk_size; in sljit_malloc_exec()
337 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
338 header->prev_size = chunk_size; in sljit_malloc_exec()
345 size = chunk_size; in sljit_malloc_exec()
355 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
356 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
358 chunk_header = alloc_chunk(chunk_size); in sljit_malloc_exec()
366 chunk_size -= sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
367 total_size += chunk_size; in sljit_malloc_exec()
373 if (chunk_size > size + 64) { in sljit_malloc_exec()
377 chunk_size -= size; in sljit_malloc_exec()
382 sljit_insert_free_block(free_block, chunk_size); in sljit_malloc_exec()
383 next_header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
387 allocated_size += chunk_size; in sljit_malloc_exec()
388 header->size = chunk_size; in sljit_malloc_exec()
389 next_header = AS_BLOCK_HEADER(header, chunk_size); in sljit_malloc_exec()
392 next_header->prev_size = chunk_size; in sljit_malloc_exec()