mm_heap 2315 Zend/zend_alloc.c zend_mm_heap *mm_heap; mm_heap 2329 Zend/zend_alloc.c return !AG(mm_heap)->use_custom_heap; mm_heap 2340 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { \ mm_heap 2341 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { \ mm_heap 2342 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.debug._malloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \ mm_heap 2344 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.std._malloc(size); \ mm_heap 2349 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { \ mm_heap 2350 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { \ mm_heap 2351 Zend/zend_alloc.c AG(mm_heap)->custom_heap.debug._free(ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \ mm_heap 2353 Zend/zend_alloc.c AG(mm_heap)->custom_heap.std._free(ptr); \ mm_heap 2366 Zend/zend_alloc.c return zend_mm_alloc_small(AG(mm_heap), _size, _num ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \ mm_heap 2375 Zend/zend_alloc.c return zend_mm_alloc_large(AG(mm_heap), size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2382 Zend/zend_alloc.c return zend_mm_alloc_huge(AG(mm_heap), size); mm_heap 2393 Zend/zend_alloc.c ZEND_MM_CHECK(chunk->heap == AG(mm_heap), "zend_mm_heap corrupted"); \ mm_heap 2396 Zend/zend_alloc.c zend_mm_free_small(AG(mm_heap), ptr, _num); \ mm_heap 2405 Zend/zend_alloc.c ZEND_MM_CHECK(chunk->heap == AG(mm_heap), "zend_mm_heap corrupted"); \ mm_heap 2406 Zend/zend_alloc.c zend_mm_free_small(AG(mm_heap), ptr, _num); \ mm_heap 2423 Zend/zend_alloc.c ZEND_MM_CHECK(chunk->heap == AG(mm_heap) && ZEND_MM_ALIGNED_OFFSET(page_offset, ZEND_MM_PAGE_SIZE) == 0, "zend_mm_heap corrupted"); mm_heap 2426 Zend/zend_alloc.c zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count); mm_heap 2434 Zend/zend_alloc.c zend_mm_free_huge(AG(mm_heap), ptr); mm_heap 2442 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { mm_heap 2443 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { mm_heap 2444 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.debug._malloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2446 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.std._malloc(size); mm_heap 2450 Zend/zend_alloc.c return zend_mm_alloc_heap(AG(mm_heap), size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2457 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { mm_heap 2458 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { mm_heap 2459 Zend/zend_alloc.c AG(mm_heap)->custom_heap.debug._free(ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2461 Zend/zend_alloc.c AG(mm_heap)->custom_heap.std._free(ptr); mm_heap 2466 Zend/zend_alloc.c zend_mm_free_heap(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2472 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { mm_heap 2473 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { mm_heap 2474 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.debug._realloc(ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2476 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.std._realloc(ptr, size); mm_heap 2479 Zend/zend_alloc.c return zend_mm_realloc_heap(AG(mm_heap), ptr, size, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2485 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { mm_heap 2486 Zend/zend_alloc.c if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { mm_heap 2487 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.debug._realloc(ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2489 Zend/zend_alloc.c return AG(mm_heap)->custom_heap.std._realloc(ptr, size); mm_heap 2492 Zend/zend_alloc.c return zend_mm_realloc_heap(AG(mm_heap), ptr, size, copy_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2497 Zend/zend_alloc.c if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { mm_heap 2500 Zend/zend_alloc.c return zend_mm_size(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); mm_heap 2605 Zend/zend_alloc.c AG(mm_heap)->limit = (memory_limit >= ZEND_MM_CHUNK_SIZE) ? memory_limit : ZEND_MM_CHUNK_SIZE; mm_heap 2614 Zend/zend_alloc.c return AG(mm_heap)->real_size; mm_heap 2616 Zend/zend_alloc.c size_t usage = AG(mm_heap)->size; mm_heap 2627 Zend/zend_alloc.c return AG(mm_heap)->real_peak; mm_heap 2629 Zend/zend_alloc.c return AG(mm_heap)->peak; mm_heap 2637 Zend/zend_alloc.c zend_mm_shutdown(AG(mm_heap), full_shutdown, silent); mm_heap 2646 Zend/zend_alloc.c alloc_globals->mm_heap = malloc(sizeof(zend_mm_heap)); mm_heap 2647 Zend/zend_alloc.c memset(alloc_globals->mm_heap, 0, sizeof(zend_mm_heap)); mm_heap 2648 Zend/zend_alloc.c alloc_globals->mm_heap->use_custom_heap = ZEND_MM_CUSTOM_HEAP_STD; mm_heap 2649 Zend/zend_alloc.c alloc_globals->mm_heap->custom_heap.std._malloc = malloc; mm_heap 2650 Zend/zend_alloc.c alloc_globals->mm_heap->custom_heap.std._free = free; mm_heap 2651 Zend/zend_alloc.c alloc_globals->mm_heap->custom_heap.std._realloc = realloc; mm_heap 2662 Zend/zend_alloc.c alloc_globals->mm_heap = zend_mm_init(); mm_heap 2668 Zend/zend_alloc.c zend_mm_shutdown(alloc_globals->mm_heap, 1, 1); mm_heap 2692 Zend/zend_alloc.c old_heap = AG(mm_heap); mm_heap 2693 Zend/zend_alloc.c AG(mm_heap) = (zend_mm_heap*)new_heap; mm_heap 2699 Zend/zend_alloc.c return AG(mm_heap); mm_heap 2705 Zend/zend_alloc.c return AG(mm_heap)->use_custom_heap; mm_heap 1597 sapi/phpdbg/phpdbg.c zend_mm_heap *mm_heap; mm_heap 1638 sapi/phpdbg/phpdbg.c mm_heap = zend_mm_get_heap(); mm_heap 1639 sapi/phpdbg/phpdbg.c zend_mm_get_custom_handlers(mm_heap, &_malloc, &_free, &_realloc); mm_heap 1650 sapi/phpdbg/phpdbg.c zend_mm_set_custom_debug_handlers(mm_heap, phpdbg_malloc_wrapper, phpdbg_free_wrapper, phpdbg_realloc_wrapper); mm_heap 1652 sapi/phpdbg/phpdbg.c zend_mm_set_custom_handlers(mm_heap, phpdbg_malloc_wrapper, phpdbg_free_wrapper, phpdbg_realloc_wrapper); mm_heap 1655 sapi/phpdbg/phpdbg.c zend_mm_set_custom_handlers(mm_heap, _malloc, _free, _realloc); mm_heap 1985 sapi/phpdbg/phpdbg.c *(int *) mm_heap = 0;