Lines Matching refs:max_size
221 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument
228 if (start_size > max_size || start_size < 1) in sljit_allocate_stack()
235 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack()
242 stack->end = stack->min_start + max_size; in sljit_allocate_stack()
307 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument
315 if (start_size > max_size || start_size < 1) in sljit_allocate_stack()
324 max_size = (max_size + page_align) & ~page_align; in sljit_allocate_stack()
327 ptr = VirtualAlloc(NULL, max_size, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack()
334 stack->end = stack->min_start + max_size; in sljit_allocate_stack()
343 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack()
351 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
358 stack->end = stack->min_start + max_size; in sljit_allocate_stack()