Lines Matching refs:max_size
175 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument
182 if (start_size > max_size || start_size < 1) in sljit_allocate_stack()
189 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack()
196 stack->end = stack->min_start + max_size; in sljit_allocate_stack()
239 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument
247 if (start_size > max_size || start_size < 1) in sljit_allocate_stack()
256 max_size = (max_size + page_align) & ~page_align; in sljit_allocate_stack()
259 ptr = VirtualAlloc(NULL, max_size, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack()
266 stack->end = stack->min_start + max_size; in sljit_allocate_stack()
275 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack()
281 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
288 stack->end = stack->min_start + max_size; in sljit_allocate_stack()