Lines Matching refs:true_size

541 #define ZEND_MM_BUCKET_INDEX(true_size)		((true_size>>ZEND_MM_ALIGNMENT_LOG2)-(ZEND_MM_ALIGNED_MIN_…  argument
543 #define ZEND_MM_SMALL_SIZE(true_size) (true_size < ZEND_MM_MAX_SMALL_SIZE) argument
1631 size_t size, true_size, min_size, max_size; in zend_mm_shutdown() local
1637 true_size = ZEND_MM_TRUE_SIZE(size); in zend_mm_shutdown()
1638 if (ZEND_MM_SMALL_SIZE(true_size)) { in zend_mm_shutdown()
1640 i = ZEND_MM_BUCKET_INDEX(true_size); in zend_mm_shutdown()
1643 true_size = ZEND_MM_TRUE_SIZE(size); in zend_mm_shutdown()
1644 if (ZEND_MM_SMALL_SIZE(true_size)) { in zend_mm_shutdown()
1645 j = ZEND_MM_BUCKET_INDEX(true_size); in zend_mm_shutdown()
1807 static zend_mm_free_block *zend_mm_search_large_block(zend_mm_heap *heap, size_t true_size) in zend_mm_search_large_block() argument
1810 size_t index = ZEND_MM_LARGE_BUCKET_INDEX(true_size); in zend_mm_search_large_block()
1826 for (m = true_size << (ZEND_MM_NUM_BUCKETS - index); ; m <<= 1) { in zend_mm_search_large_block()
1827 if (UNEXPECTED(ZEND_MM_FREE_BLOCK_SIZE(p) == true_size)) { in zend_mm_search_large_block()
1829 } else if (ZEND_MM_FREE_BLOCK_SIZE(p) >= true_size && in zend_mm_search_large_block()
1851 if (UNEXPECTED(ZEND_MM_FREE_BLOCK_SIZE(p) == true_size)) { in zend_mm_search_large_block()
1853 } else if (ZEND_MM_FREE_BLOCK_SIZE(p) > true_size && in zend_mm_search_large_block()
1883 size_t true_size = ZEND_MM_TRUE_SIZE(size); in _zend_mm_alloc_int() local
1895 if (EXPECTED(ZEND_MM_SMALL_SIZE(true_size))) { in _zend_mm_alloc_int()
1896 size_t index = ZEND_MM_BUCKET_INDEX(true_size); in _zend_mm_alloc_int()
1899 if (UNEXPECTED(true_size < size)) { in _zend_mm_alloc_int()
1911 heap->cached -= true_size; in _zend_mm_alloc_int()
1938 best_fit = zend_mm_search_large_block(heap, true_size); in _zend_mm_alloc_int()
1945 if (UNEXPECTED(ZEND_MM_FREE_BLOCK_SIZE(p) == true_size)) { in _zend_mm_alloc_int()
1948 } else if (ZEND_MM_FREE_BLOCK_SIZE(p) > true_size && in _zend_mm_alloc_int()
1958 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_alloc_int()
1961 segment_size = true_size + ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE; in _zend_mm_alloc_int()
1968 if (segment_size < true_size || in _zend_mm_alloc_int()
2026 remaining_size = block_size - true_size; in _zend_mm_alloc_int()
2029 true_size = block_size; in _zend_mm_alloc_int()
2030 ZEND_MM_BLOCK(best_fit, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_alloc_int()
2035 ZEND_MM_BLOCK(best_fit, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_alloc_int()
2036 new_free_block = (zend_mm_free_block *) ZEND_MM_BLOCK_AT(best_fit, true_size); in _zend_mm_alloc_int()
2049 heap->size += true_size; in _zend_mm_alloc_int()
2127 size_t true_size; in _zend_mm_realloc_int() local
2140 true_size = ZEND_MM_TRUE_SIZE(size); in _zend_mm_realloc_int()
2144 if (UNEXPECTED(true_size < size)) { in _zend_mm_realloc_int()
2148 if (true_size <= orig_size) { in _zend_mm_realloc_int()
2149 size_t remaining_size = orig_size - true_size; in _zend_mm_realloc_int()
2161 ZEND_MM_BLOCK(mm_block, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_realloc_int()
2162 new_free_block = (zend_mm_free_block *) ZEND_MM_BLOCK_AT(mm_block, true_size); in _zend_mm_realloc_int()
2168 heap->size += (true_size - orig_size); in _zend_mm_realloc_int()
2176 if (ZEND_MM_SMALL_SIZE(true_size)) { in _zend_mm_realloc_int()
2177 size_t index = ZEND_MM_BUCKET_INDEX(true_size); in _zend_mm_realloc_int()
2200 heap->cached -= true_size - orig_size; in _zend_mm_realloc_int()
2225 if (orig_size + ZEND_MM_FREE_BLOCK_SIZE(next_block) >= true_size) { in _zend_mm_realloc_int()
2227 size_t remaining_size = block_size - true_size; in _zend_mm_realloc_int()
2232 true_size = block_size; in _zend_mm_realloc_int()
2233 ZEND_MM_BLOCK(mm_block, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_realloc_int()
2238 ZEND_MM_BLOCK(mm_block, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_realloc_int()
2239 new_free_block = (zend_mm_free_block *) ZEND_MM_BLOCK_AT(mm_block, true_size); in _zend_mm_realloc_int()
2251 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()
2271 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_realloc_int()
2272 segment_size = true_size+ZEND_MM_ALIGNED_SEGMENT_SIZE+ZEND_MM_ALIGNED_HEADER_SIZE; in _zend_mm_realloc_int()
2279 if (segment_size < true_size || in _zend_mm_realloc_int()
2328 remaining_size = block_size - true_size; in _zend_mm_realloc_int()
2334 true_size = block_size; in _zend_mm_realloc_int()
2335 ZEND_MM_BLOCK(mm_block, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_realloc_int()
2340 ZEND_MM_BLOCK(mm_block, ZEND_MM_USED_BLOCK, true_size); in _zend_mm_realloc_int()
2341 new_free_block = (zend_mm_free_block *) ZEND_MM_BLOCK_AT(mm_block, true_size); in _zend_mm_realloc_int()
2350 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()