Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 3 of 3) sorted by relevance

/PHP-8.0/ext/pcre/pcre2lib/sljit/
H A DsljitUtils.c221 …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()
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()
[all …]
H A DsljitLir.h1453 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_…
/PHP-8.0/ext/spl/
H A Dspl_heap.c61 size_t max_size; member
248 heap->max_size = PTR_HEAP_BLOCK_SIZE; in spl_ptr_heap_init()
260 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert()
261 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert()
265 heap->max_size *= 2; in spl_ptr_heap_insert()
345 heap->max_size = from->max_size; in spl_ptr_heap_clone()
350 heap->elements = safe_emalloc(from->elem_size, from->max_size, 0); in spl_ptr_heap_clone()
351 memcpy(heap->elements, from->elements, from->elem_size * from->max_size); in spl_ptr_heap_clone()

Completed in 25 milliseconds