Home
last modified time | relevance | path

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

/PHP-5.6/ext/opcache/
H A Dshared_alloc_shm.c57 size_t allocate_size = 0, remaining_bytes = requested_size, seg_allocate_size; in create_segments() local
64 seg_allocate_size = SEG_ALLOC_SIZE_MAX; in create_segments()
68 while (requested_size * 2 <= seg_allocate_size && seg_allocate_size > SEG_ALLOC_SIZE_MIN) { in create_segments()
69 seg_allocate_size >>= 1; in create_segments()
75 while (seg_allocate_size >= SEG_ALLOC_SIZE_MIN) { in create_segments()
76 allocate_size = MIN(requested_size, seg_allocate_size); in create_segments()
81 seg_allocate_size >>= 1; /* shrink the allocated block */ in create_segments()
89 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1; in create_segments()
102 allocate_size = MIN(remaining_bytes, seg_allocate_size); in create_segments()

Completed in 5 milliseconds