Lines Matching refs:p

1248 	zend_mm_free_slot *p, *end;  local
1274 heap->free_slot[bin_num] = p = (zend_mm_free_slot*)((char*)bin + bin_data_size[bin_num]);
1276 p->next_free_slot = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1279 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1283 p = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1284 } while (p != end);
1287 p->next_free_slot = NULL;
1290 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1311 zend_mm_free_slot *p = heap->free_slot[bin_num]; local
1312 heap->free_slot[bin_num] = p->next_free_slot;
1313 return p;
1321 zend_mm_free_slot *p; local
1334 p = (zend_mm_free_slot*)ptr;
1335 p->next_free_slot = heap->free_slot[bin_num];
1336 heap->free_slot[bin_num] = p;
1951 zend_mm_free_slot *p, **q; local
1968 p = heap->free_slot[i];
1969 while (p != NULL) {
1970 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
1972 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
1989 p = p->next_free_slot;
1997 p = *q;
1998 while (p != NULL) {
1999 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
2001 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
2015 p = p->next_free_slot;
2016 *q = p;
2018 q = &p->next_free_slot;
2019 p = *q;
2068 static zend_long zend_mm_find_leaks_small(zend_mm_chunk *p, uint32_t i, uint32_t j, zend_leak_info … argument
2072 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2073 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2090 zend_mm_bitset_reset_range(p->free_map, i, bin_pages[bin_num]);
2095 static zend_long zend_mm_find_leaks(zend_mm_heap *heap, zend_mm_chunk *p, uint32_t i, zend_leak_inf… argument
2100 while (i < p->free_tail) {
2101 if (zend_mm_bitset_is_set(p->free_map, i)) {
2102 if (p->map[i] & ZEND_MM_IS_SRUN) {
2103 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2104 count += zend_mm_find_leaks_small(p, i, 0, leak);
2107 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2108 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2113 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2120 p = p->next;
2122 } while (p != heap->main_chunk);
2130 zend_mm_huge_list *p = list->next; local
2132 while (p) {
2133 if (p->dbg.filename == list->dbg.filename && p->dbg.lineno == list->dbg.lineno) {
2134 prev->next = p->next;
2135 zend_mm_chunk_free(heap, p->ptr, p->size);
2136 zend_mm_free_heap(heap, p, NULL, 0, NULL, 0);
2139 prev = p;
2141 p = prev->next;
2150 zend_mm_chunk *p; local
2182 p = heap->main_chunk;
2185 while (i < p->free_tail) {
2186 if (zend_mm_bitset_is_set(p->free_map, i)) {
2187 if (p->map[i] & ZEND_MM_IS_SRUN) {
2188 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2189 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2194 … leak.addr = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * j);
2208 repeated = zend_mm_find_leaks_small(p, i, j + 1, &leak) +
2209 zend_mm_find_leaks(heap, p, i + bin_pages[bin_num], &leak);
2220 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2221 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2223 leak.addr = (void*)((char*)p + ZEND_MM_PAGE_SIZE * i);
2233 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2235 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2246 p = p->next;
2247 } while (p != heap->main_chunk);
2261 zend_mm_chunk *p; local
2310 p = heap->main_chunk->next;
2311 while (p != heap->main_chunk) {
2312 zend_mm_chunk *q = p->next;
2313 p->next = heap->cached_chunks;
2314 heap->cached_chunks = p;
2315 p = q;
2323 p = heap->cached_chunks;
2324 heap->cached_chunks = p->next;
2325 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2334 p = heap->cached_chunks;
2335 heap->cached_chunks = p->next;
2336 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2340 p = heap->cached_chunks;
2341 while (p != NULL) {
2342 zend_mm_chunk *q = p->next;
2343 memset(p, 0, sizeof(zend_mm_chunk));
2344 p->next = q;
2345 p = q;
2349 p = heap->main_chunk;
2350 p->heap = &p->heap_slot;
2351 p->next = p;
2352 p->prev = p;
2353 p->free_pages = ZEND_MM_PAGES - ZEND_MM_FIRST_PAGE;
2354 p->free_tail = ZEND_MM_FIRST_PAGE;
2355 p->num = 0;
2372 memset(p->free_map, 0, sizeof(p->free_map) + sizeof(p->map));
2373 p->free_map[0] = (1L << ZEND_MM_FIRST_PAGE) - 1;
2374 p->map[0] = ZEND_MM_LRUN(ZEND_MM_FIRST_PAGE);
2674 void *p; local
2677 p = _emalloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2678 memset(p, 0, size);
2679 return p;
2685 char *p; local
2691 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2692 memcpy(p, s, length+1);
2693 return p;
2698 char *p; local
2703 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2704 memcpy(p, s, length);
2705 p[length] = 0;
2706 return p;
2713 char *p; local
2718 p = (char *) malloc(length + 1);
2719 if (UNEXPECTED(p == NULL)) {
2723 memcpy(p, s, length);
2725 p[length] = 0;
2726 return p;
2738 zend_mm_chunk *p = heap->cached_chunks; local
2739 heap->cached_chunks = p->next;
2740 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
3145 ZEND_API void * __zend_realloc(void *p, size_t len) argument
3147 p = realloc(p, len);
3148 if (EXPECTED(p || !len)) {
3149 return p;