Lines Matching refs:chunk_size
274 sljit_uw chunk_size; in sljit_malloc_exec() local
284 chunk_size = free_block->size; in sljit_malloc_exec()
286 if (chunk_size > size + 64) { in sljit_malloc_exec()
288 chunk_size -= size; in sljit_malloc_exec()
289 free_block->size = chunk_size; in sljit_malloc_exec()
290 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
291 header->prev_size = chunk_size; in sljit_malloc_exec()
297 size = chunk_size; in sljit_malloc_exec()
307 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
308 header = (struct block_header*)alloc_chunk(chunk_size); in sljit_malloc_exec()
314 chunk_size -= sizeof(struct block_header); in sljit_malloc_exec()
315 total_size += chunk_size; in sljit_malloc_exec()
318 if (chunk_size > size + 64) { in sljit_malloc_exec()
322 chunk_size -= size; in sljit_malloc_exec()
326 sljit_insert_free_block(free_block, chunk_size); in sljit_malloc_exec()
327 next_header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
331 allocated_size += chunk_size; in sljit_malloc_exec()
332 header->size = chunk_size; in sljit_malloc_exec()
333 next_header = AS_BLOCK_HEADER(header, chunk_size); in sljit_malloc_exec()
336 next_header->prev_size = chunk_size; in sljit_malloc_exec()