Lines Matching refs:heap

237 	HANDLE heap = HeapCreate(HEAP_NO_SERIALIZE, 0, 0);  in zend_mm_mem_win32_init()  local
240 if (heap == NULL) { in zend_mm_mem_win32_init()
245 HeapDestroy(heap); in zend_mm_mem_win32_init()
248 storage->data = (void*) heap; in zend_mm_mem_win32_init()
320 # define ZEND_MM_STORAGE_DTOR() heap->storage->handlers->dtor(heap->storage)
321 # define ZEND_MM_STORAGE_ALLOC(size) heap->storage->handlers->_alloc(heap->storage, size)
322 # define ZEND_MM_STORAGE_REALLOC(ptr, size) heap->storage->handlers->_realloc(heap->storage, ptr,…
323 # define ZEND_MM_STORAGE_FREE(ptr) heap->storage->handlers->_free(heap->storage, ptr)
452 #define ZEND_MM_SMALL_FREE_BUCKET(heap, index) \ argument
453 (zend_mm_free_block*) ((char*)&heap->free_buckets[index * 2] + \
457 #define ZEND_MM_REST_BUCKET(heap) \ argument
458 (zend_mm_free_block*)((char*)&heap->rest_buckets[0] + \
558 zend_mm_check_ptr(heap, block, 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC)
656 static void *_zend_mm_alloc_int(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_OR…
657 static void _zend_mm_free_int(zend_mm_heap *heap, void *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
658 static void *_zend_mm_realloc_int(zend_mm_heap *heap, void *p, size_t size ZEND_FILE_LINE_DC ZEND_F…
718 static inline void zend_mm_add_to_rest_list(zend_mm_heap *heap, zend_mm_free_block *mm_block) in zend_mm_add_to_rest_list() argument
728 prev = heap->rest_buckets[0]; in zend_mm_add_to_rest_list()
735 static inline void zend_mm_add_to_free_list(zend_mm_heap *heap, zend_mm_free_block *mm_block) in zend_mm_add_to_free_list() argument
747 p = &heap->large_free_buckets[index]; in zend_mm_add_to_free_list()
753 heap->large_free_bitmap |= (ZEND_MM_LONG_CONST(1) << index); in zend_mm_add_to_free_list()
784 prev = ZEND_MM_SMALL_FREE_BUCKET(heap, index); in zend_mm_add_to_free_list()
786 heap->free_bitmap |= (ZEND_MM_LONG_CONST(1) << index); in zend_mm_add_to_free_list()
796 static inline void zend_mm_remove_from_free_list(zend_mm_heap *heap, zend_mm_free_block *mm_block) in zend_mm_remove_from_free_list() argument
819 if (mm_block->parent == &heap->large_free_buckets[index]) { in zend_mm_remove_from_free_list()
820 heap->large_free_bitmap &= ~(ZEND_MM_LONG_CONST(1) << index); in zend_mm_remove_from_free_list()
857 if (EXPECTED(heap->free_buckets[index*2] == heap->free_buckets[index*2+1])) { in zend_mm_remove_from_free_list()
858 heap->free_bitmap &= ~(ZEND_MM_LONG_CONST(1) << index); in zend_mm_remove_from_free_list()
867 static inline void zend_mm_init(zend_mm_heap *heap) in zend_mm_init() argument
872 heap->free_bitmap = 0; in zend_mm_init()
873 heap->large_free_bitmap = 0; in zend_mm_init()
875 heap->cached = 0; in zend_mm_init()
876 memset(heap->cache, 0, sizeof(heap->cache)); in zend_mm_init()
880 heap->cache_stat[i].count = 0; in zend_mm_init()
883 p = ZEND_MM_SMALL_FREE_BUCKET(heap, 0); in zend_mm_init()
888 heap->large_free_buckets[i] = NULL; in zend_mm_init()
890 heap->rest_buckets[0] = heap->rest_buckets[1] = ZEND_MM_REST_BUCKET(heap); in zend_mm_init()
893 static void zend_mm_del_segment(zend_mm_heap *heap, zend_mm_segment *segment) in zend_mm_del_segment() argument
895 zend_mm_segment **p = &heap->segments_list; in zend_mm_del_segment()
901 heap->real_size -= segment->size; in zend_mm_del_segment()
906 static void zend_mm_free_cache(zend_mm_heap *heap) in zend_mm_free_cache() argument
911 if (heap->cache[i]) { in zend_mm_free_cache()
912 zend_mm_free_block *mm_block = heap->cache[i]; in zend_mm_free_cache()
919 heap->cached -= size; in zend_mm_free_cache()
924 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) mm_block); in zend_mm_free_cache()
928 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) next_block); in zend_mm_free_cache()
934 … zend_mm_del_segment(heap, (zend_mm_segment *) ((char *)mm_block - ZEND_MM_ALIGNED_SEGMENT_SIZE)); in zend_mm_free_cache()
936 zend_mm_add_to_free_list(heap, (zend_mm_free_block *) mm_block); in zend_mm_free_cache()
941 heap->cache[i] = NULL; in zend_mm_free_cache()
943 heap->cache_stat[i].count = 0; in zend_mm_free_cache()
1019 zend_mm_heap *heap; in zend_mm_startup_ex() local
1072 heap = malloc(sizeof(struct _zend_mm_heap)); in zend_mm_startup_ex()
1073 if (heap == NULL) { in zend_mm_startup_ex()
1080 heap->storage = storage; in zend_mm_startup_ex()
1081 heap->block_size = block_size; in zend_mm_startup_ex()
1082 heap->compact_size = 0; in zend_mm_startup_ex()
1083 heap->segments_list = NULL; in zend_mm_startup_ex()
1084 zend_mm_init(heap); in zend_mm_startup_ex()
1086 memset(heap->cache_stat, 0, sizeof(heap->cache_stat)); in zend_mm_startup_ex()
1089 heap->use_zend_alloc = 1; in zend_mm_startup_ex()
1090 heap->real_size = 0; in zend_mm_startup_ex()
1091 heap->overflow = 0; in zend_mm_startup_ex()
1092 heap->real_peak = 0; in zend_mm_startup_ex()
1093 heap->limit = ZEND_MM_LONG_CONST(1)<<(ZEND_MM_NUM_BUCKETS-2); in zend_mm_startup_ex()
1094 heap->size = 0; in zend_mm_startup_ex()
1095 heap->peak = 0; in zend_mm_startup_ex()
1096 heap->internal = internal; in zend_mm_startup_ex()
1097 heap->reserve = NULL; in zend_mm_startup_ex()
1098 heap->reserve_size = reserve_size; in zend_mm_startup_ex()
1100 heap->reserve = _zend_mm_alloc_int(heap, reserve_size ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC); in zend_mm_startup_ex()
1105 …zend_mm_heap *mm_heap = _zend_mm_alloc_int(heap, sizeof(zend_mm_heap) ZEND_FILE_LINE_CC ZEND_FILE… in zend_mm_startup_ex()
1107 *mm_heap = *heap; in zend_mm_startup_ex()
1110 orig = ZEND_MM_SMALL_FREE_BUCKET(heap, 0); in zend_mm_startup_ex()
1130 free(heap); in zend_mm_startup_ex()
1131 heap = mm_heap; in zend_mm_startup_ex()
1133 return heap; in zend_mm_startup_ex()
1143 zend_mm_heap *heap; in zend_mm_startup() local
1194 heap = zend_mm_startup_ex(handlers, seg_size, ZEND_MM_RESERVE_SIZE, 0, NULL); in zend_mm_startup()
1195 if (heap) { in zend_mm_startup()
1198 heap->compact_size = zend_atoi(tmp, 0); in zend_mm_startup()
1200 heap->compact_size = 2 * 1024 * 1024; in zend_mm_startup()
1203 return heap; in zend_mm_startup()
1248 static void zend_mm_check_leaks(zend_mm_heap *heap TSRMLS_DC) in zend_mm_check_leaks()
1250 zend_mm_segment *segment = heap->segments_list; in zend_mm_check_leaks()
1308 static int zend_mm_check_ptr(zend_mm_heap *heap, void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_… in zend_mm_check_ptr() argument
1340 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1352 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1362 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1371 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1393 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1404 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1420 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1428 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1436 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1445 return zend_mm_check_ptr(heap, ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in zend_mm_check_ptr()
1532 static int zend_mm_check_heap(zend_mm_heap *heap, int silent ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_… in zend_mm_check_heap() argument
1534 zend_mm_segment *segment = heap->segments_list; in zend_mm_check_heap()
1551 …if (!zend_mm_check_ptr(heap, ZEND_MM_DATA_OF(p), (silent?2:3) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LI… in zend_mm_check_heap()
1574 ZEND_API void zend_mm_shutdown(zend_mm_heap *heap, int full_shutdown, int silent TSRMLS_DC) in zend_mm_shutdown() argument
1581 if (heap->reserve) { in zend_mm_shutdown()
1584 _zend_mm_free_int(heap, heap->reserve ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC); in zend_mm_shutdown()
1587 heap->reserve = NULL; in zend_mm_shutdown()
1622 hit += heap->cache_stat[i].hit; in zend_mm_shutdown()
1623 miss += heap->cache_stat[i].miss; in zend_mm_shutdown()
1624 …, (int)max_size, ZEND_MM_TRUE_SIZE(max_size), heap->cache_stat[i].max_count, heap->cache_stat[i].h… in zend_mm_shutdown()
1630 …" %8d %8d\n", heap->cache_stat[ZEND_MM_NUM_BUCKETS].hit, he… in zend_mm_shutdown()
1638 zend_mm_check_leaks(heap TSRMLS_CC); in zend_mm_shutdown()
1642 internal = heap->internal; in zend_mm_shutdown()
1643 storage = heap->storage; in zend_mm_shutdown()
1644 segment = heap->segments_list; in zend_mm_shutdown()
1653 free(heap); in zend_mm_shutdown()
1656 if (heap->compact_size && in zend_mm_shutdown()
1657 heap->real_peak > heap->compact_size) { in zend_mm_shutdown()
1660 heap->segments_list = NULL; in zend_mm_shutdown()
1661 zend_mm_init(heap); in zend_mm_shutdown()
1662 heap->real_size = 0; in zend_mm_shutdown()
1663 heap->real_peak = 0; in zend_mm_shutdown()
1664 heap->size = 0; in zend_mm_shutdown()
1665 heap->peak = 0; in zend_mm_shutdown()
1666 if (heap->reserve_size) { in zend_mm_shutdown()
1667heap->reserve = _zend_mm_alloc_int(heap, heap->reserve_size ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPT… in zend_mm_shutdown()
1669 heap->overflow = 0; in zend_mm_shutdown()
1673 static void zend_mm_safe_error(zend_mm_heap *heap, in zend_mm_safe_error() argument
1682 if (heap->reserve) { in zend_mm_safe_error()
1683 _zend_mm_free_int(heap, heap->reserve ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC); in zend_mm_safe_error()
1684 heap->reserve = NULL; in zend_mm_safe_error()
1686 if (heap->overflow == 0) { in zend_mm_safe_error()
1703 heap->overflow = 1; in zend_mm_safe_error()
1714 if (heap->overflow == 2) { in zend_mm_safe_error()
1732 heap->overflow = 2; in zend_mm_safe_error()
1737 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
1741 size_t bitmap = heap->large_free_bitmap >> index; in zend_mm_search_large_block()
1755 p = heap->large_free_buckets[index]; in zend_mm_search_large_block()
1801 best_fit = p = heap->large_free_buckets[index + zend_mm_low_bit(bitmap)]; in zend_mm_search_large_block()
1810 static void *_zend_mm_alloc_int(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_OR… in _zend_mm_alloc_int() argument
1828 if (EXPECTED(heap->cache[index] != NULL)) { in _zend_mm_alloc_int()
1831 heap->cache_stat[index].count--; in _zend_mm_alloc_int()
1832 heap->cache_stat[index].hit++; in _zend_mm_alloc_int()
1834 best_fit = heap->cache[index]; in _zend_mm_alloc_int()
1835 heap->cache[index] = best_fit->prev_free_block; in _zend_mm_alloc_int()
1836 heap->cached -= true_size; in _zend_mm_alloc_int()
1842 heap->cache_stat[index].miss++; in _zend_mm_alloc_int()
1846 bitmap = heap->free_bitmap >> index; in _zend_mm_alloc_int()
1850 best_fit = heap->free_buckets[index*2]; in _zend_mm_alloc_int()
1852 heap->cache_stat[ZEND_MM_NUM_BUCKETS].hit++; in _zend_mm_alloc_int()
1859 heap->cache_stat[ZEND_MM_NUM_BUCKETS].miss++; in _zend_mm_alloc_int()
1862 best_fit = zend_mm_search_large_block(heap, true_size); in _zend_mm_alloc_int()
1864 if (!best_fit && heap->real_size >= heap->limit - heap->block_size) { in _zend_mm_alloc_int()
1865 zend_mm_free_block *p = heap->rest_buckets[0]; in _zend_mm_alloc_int()
1868 while (p != ZEND_MM_REST_BUCKET(heap)) { in _zend_mm_alloc_int()
1882 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_alloc_int()
1886 segment_size = (segment_size + (heap->block_size-1)) & ~(heap->block_size-1); in _zend_mm_alloc_int()
1889 segment_size = heap->block_size; in _zend_mm_alloc_int()
1895 heap->real_size + segment_size > heap->limit) { in _zend_mm_alloc_int()
1898 zend_mm_free_cache(heap); in _zend_mm_alloc_int()
1902 …zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted at %s:%d (tried to allocate %… in _zend_mm_alloc_int()
1904 …zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted (tried to allocate %lu bytes)… in _zend_mm_alloc_int()
1913 zend_mm_free_cache(heap); in _zend_mm_alloc_int()
1918 …zend_mm_safe_error(heap, "Out of memory (allocated %ld) at %s:%d (tried to allocate %lu bytes)", h… in _zend_mm_alloc_int()
1920 …zend_mm_safe_error(heap, "Out of memory (allocated %ld) (tried to allocate %lu bytes)", heap->real… in _zend_mm_alloc_int()
1925 heap->real_size += segment_size; in _zend_mm_alloc_int()
1926 if (heap->real_size > heap->real_peak) { in _zend_mm_alloc_int()
1927 heap->real_peak = heap->real_size; in _zend_mm_alloc_int()
1931 segment->next_segment = heap->segments_list; in _zend_mm_alloc_int()
1932 heap->segments_list = segment; in _zend_mm_alloc_int()
1948 zend_mm_remove_from_free_list(heap, best_fit); in _zend_mm_alloc_int()
1968 zend_mm_add_to_free_list(heap, new_free_block); in _zend_mm_alloc_int()
1970 zend_mm_add_to_rest_list(heap, new_free_block); in _zend_mm_alloc_int()
1976 heap->size += true_size; in _zend_mm_alloc_int()
1977 if (heap->peak < heap->size) { in _zend_mm_alloc_int()
1978 heap->peak = heap->size; in _zend_mm_alloc_int()
1987 static void _zend_mm_free_int(zend_mm_heap *heap, void *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) in _zend_mm_free_int() argument
2006 if (EXPECTED(ZEND_MM_SMALL_SIZE(size)) && EXPECTED(heap->cached < ZEND_MM_CACHE_SIZE)) { in _zend_mm_free_int()
2008 zend_mm_free_block **cache = &heap->cache[index]; in _zend_mm_free_int()
2012 heap->cached += size; in _zend_mm_free_int()
2015 if (++heap->cache_stat[index].count > heap->cache_stat[index].max_count) { in _zend_mm_free_int()
2016 heap->cache_stat[index].max_count = heap->cache_stat[index].count; in _zend_mm_free_int()
2025 heap->size -= size; in _zend_mm_free_int()
2029 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) next_block); in _zend_mm_free_int()
2034 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) mm_block); in _zend_mm_free_int()
2039 zend_mm_del_segment(heap, (zend_mm_segment *) ((char *)mm_block - ZEND_MM_ALIGNED_SEGMENT_SIZE)); in _zend_mm_free_int()
2042 zend_mm_add_to_free_list(heap, (zend_mm_free_block *) mm_block); in _zend_mm_free_int()
2047 static void *_zend_mm_realloc_int(zend_mm_heap *heap, void *p, size_t size ZEND_FILE_LINE_DC ZEND_F… in _zend_mm_realloc_int() argument
2056 return _zend_mm_alloc_int(heap, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_realloc_int()
2077 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) next_block); in _zend_mm_realloc_int()
2087 zend_mm_add_to_free_list(heap, new_free_block); in _zend_mm_realloc_int()
2088 heap->size += (true_size - orig_size); in _zend_mm_realloc_int()
2099 if (heap->cache[index] != NULL) { in _zend_mm_realloc_int()
2104 heap->cache_stat[index].count--; in _zend_mm_realloc_int()
2105 heap->cache_stat[index].hit++; in _zend_mm_realloc_int()
2107 best_fit = heap->cache[index]; in _zend_mm_realloc_int()
2108 heap->cache[index] = best_fit->prev_free_block; in _zend_mm_realloc_int()
2120 heap->cached -= true_size - orig_size; in _zend_mm_realloc_int()
2123 cache = &heap->cache[index]; in _zend_mm_realloc_int()
2129 if (++heap->cache_stat[index].count > heap->cache_stat[index].max_count) { in _zend_mm_realloc_int()
2130 heap->cache_stat[index].max_count = heap->cache_stat[index].count; in _zend_mm_realloc_int()
2149 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) next_block); in _zend_mm_realloc_int()
2165 zend_mm_add_to_rest_list(heap, new_free_block); in _zend_mm_realloc_int()
2167 zend_mm_add_to_free_list(heap, new_free_block); in _zend_mm_realloc_int()
2171 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()
2172 if (heap->peak < heap->size) { in _zend_mm_realloc_int()
2173 heap->peak = heap->size; in _zend_mm_realloc_int()
2180 zend_mm_remove_from_free_list(heap, (zend_mm_free_block *) next_block); in _zend_mm_realloc_int()
2193 if (true_size > heap->block_size - (ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE)) { in _zend_mm_realloc_int()
2195 segment_size = (segment_size + (heap->block_size-1)) & ~(heap->block_size-1); in _zend_mm_realloc_int()
2197 segment_size = heap->block_size; in _zend_mm_realloc_int()
2202 heap->real_size + segment_size - segment_copy->size > heap->limit) { in _zend_mm_realloc_int()
2204 zend_mm_add_to_free_list(heap, (zend_mm_free_block *) next_block); in _zend_mm_realloc_int()
2207 zend_mm_free_cache(heap); in _zend_mm_realloc_int()
2211 …zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted at %s:%d (tried to allocate %… in _zend_mm_realloc_int()
2213 …zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted (tried to allocate %ld bytes)… in _zend_mm_realloc_int()
2221 zend_mm_free_cache(heap); in _zend_mm_realloc_int()
2226 …zend_mm_safe_error(heap, "Out of memory (allocated %ld) at %s:%d (tried to allocate %ld bytes)", h… in _zend_mm_realloc_int()
2228 …zend_mm_safe_error(heap, "Out of memory (allocated %ld) (tried to allocate %ld bytes)", heap->real… in _zend_mm_realloc_int()
2232 heap->real_size += segment_size - segment->size; in _zend_mm_realloc_int()
2233 if (heap->real_size > heap->real_peak) { in _zend_mm_realloc_int()
2234 heap->real_peak = heap->real_size; in _zend_mm_realloc_int()
2240 zend_mm_segment **seg = &heap->segments_list; in _zend_mm_realloc_int()
2267 zend_mm_add_to_rest_list(heap, new_free_block); in _zend_mm_realloc_int()
2272 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()
2273 if (heap->peak < heap->size) { in _zend_mm_realloc_int()
2274 heap->peak = heap->size; in _zend_mm_realloc_int()
2281 ptr = _zend_mm_alloc_int(heap, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_realloc_int()
2287 _zend_mm_free_int(heap, p ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_realloc_int()
2291 ZEND_API void *_zend_mm_alloc(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG… in _zend_mm_alloc() argument
2293 return _zend_mm_alloc_int(heap, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_alloc()
2296 ZEND_API void _zend_mm_free(zend_mm_heap *heap, void *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) in _zend_mm_free() argument
2298 _zend_mm_free_int(heap, p ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_free()
2301 ZEND_API void *_zend_mm_realloc(zend_mm_heap *heap, void *ptr, size_t size ZEND_FILE_LINE_DC ZEND_F… in _zend_mm_realloc() argument
2303 return _zend_mm_realloc_int(heap, ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _zend_mm_realloc()
2306 ZEND_API size_t _zend_mm_block_size(zend_mm_heap *heap, void *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_OR… in _zend_mm_block_size() argument
2606 ZEND_API zend_mm_storage *zend_mm_get_storage(zend_mm_heap *heap) in zend_mm_get_storage() argument
2608 return heap->storage; in zend_mm_get_storage()
2611 ZEND_API void zend_mm_set_custom_handlers(zend_mm_heap *heap, in zend_mm_set_custom_handlers() argument
2616 heap->use_zend_alloc = 0; in zend_mm_set_custom_handlers()
2617 heap->_malloc = _malloc; in zend_mm_set_custom_handlers()
2618 heap->_free = _free; in zend_mm_set_custom_handlers()
2619 heap->_realloc = _realloc; in zend_mm_set_custom_handlers()