Lines Matching refs:block_size

422 	size_t              block_size;  member
1038 ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_mem_handlers *handlers, size_t block_size, … in zend_mm_startup_ex() argument
1075 if (zend_mm_low_bit(block_size) != zend_mm_high_bit(block_size)) { in zend_mm_startup_ex()
1103 heap->block_size = block_size; in zend_mm_startup_ex()
1725 …size_t block_size = heap->segments_list->size - ZEND_MM_ALIGNED_SEGMENT_SIZE - ZEND_MM_ALIGNED_HEA… in zend_mm_shutdown() local
1728 ZEND_MM_LAST_BLOCK(ZEND_MM_BLOCK_AT(b, block_size)); in zend_mm_shutdown()
1729 ZEND_MM_BLOCK(b, ZEND_MM_FREE_BLOCK, block_size); in zend_mm_shutdown()
1880 size_t block_size; in _zend_mm_alloc_int() local
1936 if (!best_fit && heap->real_size >= heap->limit - heap->block_size) { in _zend_mm_alloc_int()
1954 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_alloc_int()
1958 segment_size = (segment_size + (heap->block_size-1)) & ~(heap->block_size-1); in _zend_mm_alloc_int()
1961 segment_size = heap->block_size; in _zend_mm_alloc_int()
2007 block_size = segment_size - ZEND_MM_ALIGNED_SEGMENT_SIZE - ZEND_MM_ALIGNED_HEADER_SIZE; in _zend_mm_alloc_int()
2009 ZEND_MM_LAST_BLOCK(ZEND_MM_BLOCK_AT(best_fit, block_size)); in _zend_mm_alloc_int()
2019 block_size = ZEND_MM_FREE_BLOCK_SIZE(best_fit); in _zend_mm_alloc_int()
2022 remaining_size = block_size - true_size; in _zend_mm_alloc_int()
2025 true_size = block_size; in _zend_mm_alloc_int()
2222 size_t block_size = orig_size + ZEND_MM_FREE_BLOCK_SIZE(next_block); in _zend_mm_realloc_int() local
2223 size_t remaining_size = block_size - true_size; in _zend_mm_realloc_int()
2228 true_size = block_size; in _zend_mm_realloc_int()
2262 size_t block_size; in _zend_mm_realloc_int() local
2267 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_realloc_int()
2269 segment_size = (segment_size + (heap->block_size-1)) & ~(heap->block_size-1); in _zend_mm_realloc_int()
2271 segment_size = heap->block_size; in _zend_mm_realloc_int()
2323 block_size = segment_size - ZEND_MM_ALIGNED_SEGMENT_SIZE - ZEND_MM_ALIGNED_HEADER_SIZE; in _zend_mm_realloc_int()
2324 remaining_size = block_size - true_size; in _zend_mm_realloc_int()
2327 ZEND_MM_LAST_BLOCK(ZEND_MM_BLOCK_AT(mm_block, block_size)); in _zend_mm_realloc_int()
2330 true_size = block_size; in _zend_mm_realloc_int()
2645 …G(mm_heap)->limit = (memory_limit >= AG(mm_heap)->block_size) ? memory_limit : AG(mm_heap)->block_… in zend_set_memory_limit()