Lines Matching refs:p

1249 	zend_mm_free_slot *p, *end;  local
1275 heap->free_slot[bin_num] = p = (zend_mm_free_slot*)((char*)bin + bin_data_size[bin_num]);
1277 p->next_free_slot = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1280 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1284 p = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1285 } while (p != end);
1288 p->next_free_slot = NULL;
1291 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1312 zend_mm_free_slot *p = heap->free_slot[bin_num]; local
1313 heap->free_slot[bin_num] = p->next_free_slot;
1314 return p;
1322 zend_mm_free_slot *p; local
1335 p = (zend_mm_free_slot*)ptr;
1336 p->next_free_slot = heap->free_slot[bin_num];
1337 heap->free_slot[bin_num] = p;
1952 zend_mm_free_slot *p, **q; local
1969 p = heap->free_slot[i];
1970 while (p != NULL) {
1971 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
1973 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
1990 p = p->next_free_slot;
1998 p = *q;
1999 while (p != NULL) {
2000 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
2002 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
2016 p = p->next_free_slot;
2017 *q = p;
2019 q = &p->next_free_slot;
2020 p = *q;
2069 static zend_long zend_mm_find_leaks_small(zend_mm_chunk *p, uint32_t i, uint32_t j, zend_leak_info … argument
2073 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2074 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2091 zend_mm_bitset_reset_range(p->free_map, i, bin_pages[bin_num]);
2096 static zend_long zend_mm_find_leaks(zend_mm_heap *heap, zend_mm_chunk *p, uint32_t i, zend_leak_inf… argument
2101 while (i < p->free_tail) {
2102 if (zend_mm_bitset_is_set(p->free_map, i)) {
2103 if (p->map[i] & ZEND_MM_IS_SRUN) {
2104 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2105 count += zend_mm_find_leaks_small(p, i, 0, leak);
2108 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2109 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2114 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2121 p = p->next;
2123 } while (p != heap->main_chunk);
2131 zend_mm_huge_list *p = list->next; local
2133 while (p) {
2134 if (p->dbg.filename == list->dbg.filename && p->dbg.lineno == list->dbg.lineno) {
2135 prev->next = p->next;
2136 zend_mm_chunk_free(heap, p->ptr, p->size);
2137 zend_mm_free_heap(heap, p, NULL, 0, NULL, 0);
2140 prev = p;
2142 p = prev->next;
2151 zend_mm_chunk *p; local
2183 p = heap->main_chunk;
2186 while (i < p->free_tail) {
2187 if (zend_mm_bitset_is_set(p->free_map, i)) {
2188 if (p->map[i] & ZEND_MM_IS_SRUN) {
2189 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2190 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2195 … leak.addr = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * j);
2209 repeated = zend_mm_find_leaks_small(p, i, j + 1, &leak) +
2210 zend_mm_find_leaks(heap, p, i + bin_pages[bin_num], &leak);
2221 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2222 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2224 leak.addr = (void*)((char*)p + ZEND_MM_PAGE_SIZE * i);
2234 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2236 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2247 p = p->next;
2248 } while (p != heap->main_chunk);
2262 zend_mm_chunk *p; local
2308 p = heap->main_chunk->next;
2309 while (p != heap->main_chunk) {
2310 zend_mm_chunk *q = p->next;
2311 p->next = heap->cached_chunks;
2312 heap->cached_chunks = p;
2313 p = q;
2321 p = heap->cached_chunks;
2322 heap->cached_chunks = p->next;
2323 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2332 p = heap->cached_chunks;
2333 heap->cached_chunks = p->next;
2334 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2338 p = heap->cached_chunks;
2339 while (p != NULL) {
2340 zend_mm_chunk *q = p->next;
2341 memset(p, 0, sizeof(zend_mm_chunk));
2342 p->next = q;
2343 p = q;
2347 p = heap->main_chunk;
2348 p->heap = &p->heap_slot;
2349 p->next = p;
2350 p->prev = p;
2351 p->free_pages = ZEND_MM_PAGES - ZEND_MM_FIRST_PAGE;
2352 p->free_tail = ZEND_MM_FIRST_PAGE;
2353 p->num = 0;
2370 memset(p->free_map, 0, sizeof(p->free_map) + sizeof(p->map));
2371 p->free_map[0] = (1L << ZEND_MM_FIRST_PAGE) - 1;
2372 p->map[0] = ZEND_MM_LRUN(ZEND_MM_FIRST_PAGE);
2665 void *p; local
2668 p = _emalloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2669 memset(p, 0, size);
2670 return p;
2676 char *p; local
2682 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2683 memcpy(p, s, length+1);
2684 return p;
2689 char *p; local
2694 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2695 memcpy(p, s, length);
2696 p[length] = 0;
2697 return p;
2704 char *p; local
2709 p = (char *) malloc(length + 1);
2710 if (UNEXPECTED(p == NULL)) {
2714 memcpy(p, s, length);
2716 p[length] = 0;
2717 return p;
2729 zend_mm_chunk *p = heap->cached_chunks; local
2730 heap->cached_chunks = p->next;
2731 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
3136 ZEND_API void * __zend_realloc(void *p, size_t len) argument
3138 p = realloc(p, len);
3139 if (EXPECTED(p || !len)) {
3140 return p;