Lines Matching refs:header

227 	struct block_header header;  member
246 free_block->header.size = 0; in sljit_insert_free_block()
271 struct block_header *header; in sljit_malloc_exec() local
290 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
291 header->prev_size = chunk_size; in sljit_malloc_exec()
292 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
296 header = (struct block_header*)free_block; in sljit_malloc_exec()
300 header->size = size; in sljit_malloc_exec()
302 return MEM_START(header); in sljit_malloc_exec()
308 header = (struct block_header*)alloc_chunk(chunk_size); in sljit_malloc_exec()
309 if (!header) { in sljit_malloc_exec()
317 header->prev_size = 0; in sljit_malloc_exec()
321 header->size = size; in sljit_malloc_exec()
324 free_block = AS_FREE_BLOCK(header, size); in sljit_malloc_exec()
325 free_block->header.prev_size = 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()
338 return MEM_START(header); in sljit_malloc_exec()
343 struct block_header *header; in sljit_free_exec() local
347 header = AS_BLOCK_HEADER(ptr, -(sljit_sw)sizeof(struct block_header)); in sljit_free_exec()
348 allocated_size -= header->size; in sljit_free_exec()
355 free_block = AS_FREE_BLOCK(header, -(sljit_sw)header->prev_size); in sljit_free_exec()
356 if (SLJIT_UNLIKELY(!free_block->header.size)) { in sljit_free_exec()
357 free_block->size += header->size; in sljit_free_exec()
358 header = AS_BLOCK_HEADER(free_block, free_block->size); in sljit_free_exec()
359 header->prev_size = free_block->size; in sljit_free_exec()
362 free_block = (struct free_block*)header; in sljit_free_exec()
363 sljit_insert_free_block(free_block, header->size); in sljit_free_exec()
366 header = AS_BLOCK_HEADER(free_block, free_block->size); in sljit_free_exec()
367 if (SLJIT_UNLIKELY(!header->size)) { in sljit_free_exec()
368 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec()
369 sljit_remove_free_block((struct free_block*)header); in sljit_free_exec()
370 header = AS_BLOCK_HEADER(free_block, free_block->size); in sljit_free_exec()
371 header->prev_size = free_block->size; in sljit_free_exec()
375 if (SLJIT_UNLIKELY(!free_block->header.prev_size && header->size == 1)) { in sljit_free_exec()
399 if (!free_block->header.prev_size && in sljit_free_unused_memory_exec()