Searched refs:max_size (Results 1 – 3 of 3) sorted by relevance
/PHP-7.3/ext/pcre/pcre2lib/sljit/ |
H A D | sljitUtils.c | 206 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument 215 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 238 max_size = (max_size + sljit_page_align) & ~sljit_page_align; in sljit_allocate_stack() 241 ptr = VirtualAlloc(NULL, max_size, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack() 248 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 257 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack() 265 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack() 272 stack->end = stack->min_start + max_size; in sljit_allocate_stack()
|
H A D | sljitLir.h | 1393 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_…
|
/PHP-7.3/ext/spl/ |
H A D | spl_heap.c | 61 int max_size; member 227 heap->max_size = PTR_HEAP_BLOCK_SIZE; in spl_ptr_heap_init() 238 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert() 240 heap->elements = erealloc(heap->elements, heap->max_size * 2 * sizeof(zval)); in spl_ptr_heap_insert() 241 memset(heap->elements + heap->max_size, 0, heap->max_size * sizeof(zval)); in spl_ptr_heap_insert() 242 heap->max_size *= 2; in spl_ptr_heap_insert() 314 heap->max_size = from->max_size; in spl_ptr_heap_clone() 318 heap->elements = safe_emalloc(sizeof(zval), from->max_size, 0); in spl_ptr_heap_clone() 319 memcpy(heap->elements, from->elements, sizeof(zval)*from->max_size); in spl_ptr_heap_clone()
|
Completed in 29 milliseconds