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

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

Completed in 1 milliseconds