Lines Matching refs:p

1191 	zend_mm_free_slot *p, *end;  local
1217 heap->free_slot[bin_num] = p = (zend_mm_free_slot*)((char*)bin + bin_data_size[bin_num]);
1219 p->next_free_slot = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1222 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1226 p = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1227 } while (p != end);
1230 p->next_free_slot = NULL;
1233 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1254 zend_mm_free_slot *p = heap->free_slot[bin_num]; local
1255 heap->free_slot[bin_num] = p->next_free_slot;
1256 return (void*)p;
1264 zend_mm_free_slot *p; local
1277 p = (zend_mm_free_slot*)ptr;
1278 p->next_free_slot = heap->free_slot[bin_num];
1279 heap->free_slot[bin_num] = p;
1898 zend_mm_free_slot *p, **q; local
1915 p = heap->free_slot[i];
1916 while (p != NULL) {
1917 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
1919 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
1936 p = p->next_free_slot;
1944 p = *q;
1945 while (p != NULL) {
1946 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
1948 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
1962 p = p->next_free_slot;
1963 *q = p;
1965 q = &p->next_free_slot;
1966 p = *q;
2015 static zend_long zend_mm_find_leaks_small(zend_mm_chunk *p, uint32_t i, uint32_t j, zend_leak_info … argument
2019 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2020 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2037 zend_mm_bitset_reset_range(p->free_map, i, bin_pages[bin_num]);
2042 static zend_long zend_mm_find_leaks(zend_mm_heap *heap, zend_mm_chunk *p, uint32_t i, zend_leak_inf… argument
2047 while (i < p->free_tail) {
2048 if (zend_mm_bitset_is_set(p->free_map, i)) {
2049 if (p->map[i] & ZEND_MM_IS_SRUN) {
2050 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2051 count += zend_mm_find_leaks_small(p, i, 0, leak);
2054 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2055 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2060 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2067 p = p->next;
2069 } while (p != heap->main_chunk);
2077 zend_mm_huge_list *p = list->next; local
2079 while (p) {
2080 if (p->dbg.filename == list->dbg.filename && p->dbg.lineno == list->dbg.lineno) {
2081 prev->next = p->next;
2082 zend_mm_chunk_free(heap, p->ptr, p->size);
2083 zend_mm_free_heap(heap, p, NULL, 0, NULL, 0);
2086 prev = p;
2088 p = prev->next;
2097 zend_mm_chunk *p; local
2129 p = heap->main_chunk;
2132 while (i < p->free_tail) {
2133 if (zend_mm_bitset_is_set(p->free_map, i)) {
2134 if (p->map[i] & ZEND_MM_IS_SRUN) {
2135 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2136 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2141 … leak.addr = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * j);
2155 repeated = zend_mm_find_leaks_small(p, i, j + 1, &leak) +
2156 zend_mm_find_leaks(heap, p, i + bin_pages[bin_num], &leak);
2167 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2168 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2170 leak.addr = (void*)((char*)p + ZEND_MM_PAGE_SIZE * i);
2180 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2182 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2193 p = p->next;
2194 } while (p != heap->main_chunk);
2208 zend_mm_chunk *p; local
2253 p = heap->main_chunk->next;
2254 while (p != heap->main_chunk) {
2255 zend_mm_chunk *q = p->next;
2256 p->next = heap->cached_chunks;
2257 heap->cached_chunks = p;
2258 p = q;
2266 p = heap->cached_chunks;
2267 heap->cached_chunks = p->next;
2268 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2277 p = heap->cached_chunks;
2278 heap->cached_chunks = p->next;
2279 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2283 p = heap->cached_chunks;
2284 while (p != NULL) {
2285 zend_mm_chunk *q = p->next;
2286 memset(p, 0, sizeof(zend_mm_chunk));
2287 p->next = q;
2288 p = q;
2292 p = heap->main_chunk;
2293 p->heap = &p->heap_slot;
2294 p->next = p;
2295 p->prev = p;
2296 p->free_pages = ZEND_MM_PAGES - ZEND_MM_FIRST_PAGE;
2297 p->free_tail = ZEND_MM_FIRST_PAGE;
2298 p->num = 0;
2315 memset(p->free_map, 0, sizeof(p->free_map) + sizeof(p->map));
2316 p->free_map[0] = (1L << ZEND_MM_FIRST_PAGE) - 1;
2317 p->map[0] = ZEND_MM_LRUN(ZEND_MM_FIRST_PAGE);
2605 void *p; local
2608 p = _emalloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2609 memset(p, 0, size);
2610 return p;
2616 char *p; local
2622 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2623 memcpy(p, s, length+1);
2624 return p;
2629 char *p; local
2634 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2635 memcpy(p, s, length);
2636 p[length] = 0;
2637 return p;
2643 char *p; local
2648 p = (char *) malloc(length + 1);
2649 if (UNEXPECTED(p == NULL)) {
2650 return p;
2653 memcpy(p, s, length);
2655 p[length] = 0;
2656 return p;
2999 ZEND_API void * __zend_realloc(void *p, size_t len) argument
3001 p = realloc(p, len);
3002 if (EXPECTED(p || !len)) {
3003 return p;