Lines Matching refs:header
41 header contains the size of the previous and the next block. These sizes
203 struct chunk_header *header = ((struct chunk_header *)chunk) - 1;
205 int fd = header->fd;
206 munmap(header->executable, size);
207 munmap(header, size);
224 struct block_header header;
243 free_block->header.size = 0;
269 struct block_header *header;
288 header = AS_BLOCK_HEADER(free_block, chunk_size);
289 header->prev_size = chunk_size;
290 header->executable_offset = free_block->header.executable_offset;
291 AS_BLOCK_HEADER(header, size)->prev_size = size;
295 header = (struct block_header*)free_block;
299 header->size = size;
301 return MEM_START(header);
320 header = (struct block_header *)(chunk_header + 1);
322 header->prev_size = 0;
323 header->executable_offset = executable_offset;
327 header->size = size;
330 free_block = AS_FREE_BLOCK(header, size);
331 free_block->header.prev_size = size;
332 free_block->header.executable_offset = executable_offset;
339 header->size = chunk_size;
340 next_header = AS_BLOCK_HEADER(header, chunk_size);
346 return MEM_START(header);
351 struct block_header *header;
355 header = AS_BLOCK_HEADER(ptr, -(sljit_sw)sizeof(struct block_header));
356 header = AS_BLOCK_HEADER(header, -header->executable_offset);
357 allocated_size -= header->size;
361 /* If header->prev_size == 0, free_block will equal to header.
362 In this case, free_block->header.size will be > 0. */
363 free_block = AS_FREE_BLOCK(header, -(sljit_sw)header->prev_size);
364 if (SLJIT_UNLIKELY(!free_block->header.size)) {
365 free_block->size += header->size;
366 header = AS_BLOCK_HEADER(free_block, free_block->size);
367 header->prev_size = free_block->size;
370 free_block = (struct free_block*)header;
371 sljit_insert_free_block(free_block, header->size);
374 header = AS_BLOCK_HEADER(free_block, free_block->size);
375 if (SLJIT_UNLIKELY(!header->size)) {
376 free_block->size += ((struct free_block*)header)->size;
377 sljit_remove_free_block((struct free_block*)header);
378 header = AS_BLOCK_HEADER(free_block, free_block->size);
379 header->prev_size = free_block->size;
383 if (SLJIT_UNLIKELY(!free_block->header.prev_size && header->size == 1)) {
405 if (!free_block->header.prev_size &&