mm_heap 1131 Zend/zend_alloc.c zend_mm_heap *mm_heap = _zend_mm_alloc_int(heap, sizeof(zend_mm_heap) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC); mm_heap 1133 Zend/zend_alloc.c *mm_heap = *heap; mm_heap 1135 Zend/zend_alloc.c p = ZEND_MM_SMALL_FREE_BUCKET(mm_heap, 0); mm_heap 1150 Zend/zend_alloc.c if (mm_heap->large_free_buckets[i]) { mm_heap 1151 Zend/zend_alloc.c mm_heap->large_free_buckets[i]->parent = &mm_heap->large_free_buckets[i]; mm_heap 1154 Zend/zend_alloc.c mm_heap->rest_buckets[0] = mm_heap->rest_buckets[1] = ZEND_MM_REST_BUCKET(mm_heap); mm_heap 1155 Zend/zend_alloc.c mm_heap->rest_count = 0; mm_heap 1158 Zend/zend_alloc.c heap = mm_heap; mm_heap 2406 Zend/zend_alloc.c zend_mm_heap *mm_heap; mm_heap 2419 Zend/zend_alloc.c return AG(mm_heap)->use_zend_alloc; mm_heap 2426 Zend/zend_alloc.c if (UNEXPECTED(!AG(mm_heap)->use_zend_alloc)) { mm_heap 2427 Zend/zend_alloc.c return AG(mm_heap)->_malloc(size); mm_heap 2429 Zend/zend_alloc.c return _zend_mm_alloc_int(AG(mm_heap), size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2436 Zend/zend_alloc.c if (UNEXPECTED(!AG(mm_heap)->use_zend_alloc)) { mm_heap 2437 Zend/zend_alloc.c AG(mm_heap)->_free(ptr); mm_heap 2440 Zend/zend_alloc.c _zend_mm_free_int(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2447 Zend/zend_alloc.c if (UNEXPECTED(!AG(mm_heap)->use_zend_alloc)) { mm_heap 2448 Zend/zend_alloc.c return AG(mm_heap)->_realloc(ptr, size); mm_heap 2450 Zend/zend_alloc.c return _zend_mm_realloc_int(AG(mm_heap), ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2455 Zend/zend_alloc.c if (UNEXPECTED(!AG(mm_heap)->use_zend_alloc)) { mm_heap 2458 Zend/zend_alloc.c return _zend_mm_block_size(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2689 Zend/zend_alloc.c AG(mm_heap)->limit = (memory_limit >= AG(mm_heap)->block_size) ? memory_limit : AG(mm_heap)->block_size; mm_heap 2697 Zend/zend_alloc.c return AG(mm_heap)->real_size; mm_heap 2699 Zend/zend_alloc.c size_t usage = AG(mm_heap)->size; mm_heap 2701 Zend/zend_alloc.c usage -= AG(mm_heap)->cached; mm_heap 2710 Zend/zend_alloc.c return AG(mm_heap)->real_peak; mm_heap 2712 Zend/zend_alloc.c return AG(mm_heap)->peak; mm_heap 2718 Zend/zend_alloc.c zend_mm_shutdown(AG(mm_heap), full_shutdown, silent TSRMLS_CC); mm_heap 2726 Zend/zend_alloc.c alloc_globals->mm_heap = malloc(sizeof(struct _zend_mm_heap)); mm_heap 2727 Zend/zend_alloc.c memset(alloc_globals->mm_heap, 0, sizeof(struct _zend_mm_heap)); mm_heap 2728 Zend/zend_alloc.c alloc_globals->mm_heap->use_zend_alloc = 0; mm_heap 2729 Zend/zend_alloc.c alloc_globals->mm_heap->_malloc = malloc; mm_heap 2730 Zend/zend_alloc.c alloc_globals->mm_heap->_free = free; mm_heap 2731 Zend/zend_alloc.c alloc_globals->mm_heap->_realloc = realloc; mm_heap 2733 Zend/zend_alloc.c alloc_globals->mm_heap = zend_mm_startup(); mm_heap 2757 Zend/zend_alloc.c old_heap = AG(mm_heap); mm_heap 2758 Zend/zend_alloc.c AG(mm_heap) = new_heap; mm_heap 2783 Zend/zend_alloc.c if (!AG(mm_heap)->use_zend_alloc) { mm_heap 2786 Zend/zend_alloc.c return zend_mm_check_ptr(AG(mm_heap), ptr, silent ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2795 Zend/zend_alloc.c if (!AG(mm_heap)->use_zend_alloc) { mm_heap 2802 Zend/zend_alloc.c errors = zend_mm_check_heap(AG(mm_heap), silent ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 929 sapi/phpdbg/phpdbg.c zend_mm_heap *mm_heap; mm_heap 933 sapi/phpdbg/phpdbg.c mm_heap = zend_mm_set_heap(NULL TSRMLS_CC); mm_heap 934 sapi/phpdbg/phpdbg.c zend_mm_set_heap(mm_heap TSRMLS_CC); mm_heap 936 sapi/phpdbg/phpdbg.c return mm_heap; mm_heap 1296 sapi/phpdbg/phpdbg.c zend_mm_heap *mm_heap = phpdbg_mm_get_heap(); mm_heap 1298 sapi/phpdbg/phpdbg.c if (mm_heap->use_zend_alloc) { mm_heap 1299 sapi/phpdbg/phpdbg.c mm_heap->_malloc = phpdbg_malloc_wrapper; mm_heap 1300 sapi/phpdbg/phpdbg.c mm_heap->_realloc = phpdbg_realloc_wrapper; mm_heap 1301 sapi/phpdbg/phpdbg.c mm_heap->_free = phpdbg_free_wrapper; mm_heap 1302 sapi/phpdbg/phpdbg.c mm_heap->use_zend_alloc = 0; mm_heap 1307 sapi/phpdbg/phpdbg.c PHPDBG_G(original_free_function) = mm_heap->_free; mm_heap 1308 sapi/phpdbg/phpdbg.c mm_heap->_free = phpdbg_watch_efree;