Lines Matching refs:chunk_header
71 struct chunk_header { struct
168 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk()
170 struct chunk_header *retval; in alloc_chunk()
182 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
203 struct chunk_header *header = ((struct chunk_header *)chunk) - 1; in free_chunk()
268 struct chunk_header *chunk_header; in sljit_malloc_exec() local
306 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
309 chunk_header = alloc_chunk(chunk_size); in sljit_malloc_exec()
310 if (!chunk_header) { in sljit_malloc_exec()
315 executable_offset = (sljit_sw)((sljit_u8*)chunk_header->executable - (sljit_u8*)chunk_header); in sljit_malloc_exec()
317 chunk_size -= sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
320 header = (struct block_header *)(chunk_header + 1); in sljit_malloc_exec()