Lines Matching refs:chunk_header
71 struct chunk_header { struct
187 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk()
189 struct chunk_header *retval; in alloc_chunk()
201 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
220 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk()
222 struct chunk_header *retval; in alloc_chunk()
225 retval = (struct chunk_header *)mmap(NULL, size, in alloc_chunk()
251 struct chunk_header *header = ((struct chunk_header *)chunk) - 1; in free_chunk()
314 struct chunk_header *chunk_header; in sljit_malloc_exec() local
352 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
355 chunk_header = alloc_chunk(chunk_size); in sljit_malloc_exec()
356 if (!chunk_header) { in sljit_malloc_exec()
361 executable_offset = (sljit_sw)((sljit_u8*)chunk_header->executable - (sljit_u8*)chunk_header); in sljit_malloc_exec()
363 chunk_size -= sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
366 header = (struct block_header *)(chunk_header + 1); in sljit_malloc_exec()
435 sizeof(struct chunk_header) + in sljit_free_exec()
458 sizeof(struct chunk_header) + in sljit_free_unused_memory_exec()