Home
last modified time | relevance | path

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

/PHP-7.4/ext/opcache/
H A Dshared_alloc_shm.c56 size_t allocate_size = 0, remaining_bytes = requested_size, seg_allocate_size; in create_segments() local
63 seg_allocate_size = SEG_ALLOC_SIZE_MAX; in create_segments()
67 while (requested_size * 2 <= seg_allocate_size && seg_allocate_size > SEG_ALLOC_SIZE_MIN) { in create_segments()
68 seg_allocate_size >>= 1; in create_segments()
74 while (seg_allocate_size >= SEG_ALLOC_SIZE_MIN) { in create_segments()
75 allocate_size = MIN(requested_size, seg_allocate_size); in create_segments()
80 seg_allocate_size >>= 1; /* shrink the allocated block */ in create_segments()
88 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1; in create_segments()
101 allocate_size = MIN(remaining_bytes, seg_allocate_size); in create_segments()

Completed in 6 milliseconds