Searched defs:mm_heap (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend_alloc.c2246 zend_mm_heap *mm_heap; member in struct:_zend_alloc_globals
2260 return !AG(mm_heap)->use_custom_heap;
2271 if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { \
2272 if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { \
2273 return AG(mm_heap)->custom_heap.debug._malloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \
2275 return AG(mm_heap)->custom_heap.std._malloc(size); \
2280 if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { \
2281 if (ZEND_DEBUG && AG(mm_heap)->use_custom_heap == ZEND_MM_CUSTOM_HEAP_DEBUG) { \
2282 AG(mm_heap)->custom_heap.debug._free(ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \
2284 AG(mm_heap)
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c1582 zend_mm_heap *mm_heap; local
1618 mm_heap = zend_mm_get_heap();
1619 zend_mm_get_custom_handlers(mm_heap, &_malloc, &_free, &_realloc);
1630 zend_mm_set_custom_debug_handlers(mm_heap, phpdbg_malloc_wrapper, phpdbg_free_wrapper, phpdbg_realloc_wrapper);
1632 zend_mm_set_custom_handlers(mm_heap, phpdbg_malloc_wrapper, phpdbg_free_wrapper, phpdbg_realloc_wrapper);
1635 zend_mm_set_custom_handlers(mm_heap, _malloc, _free, _realloc);
1954 /* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */
1956 /* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */
1957 *(int *) mm_heap = 0;

Completed in 8 milliseconds