Lines Matching refs:p

1344 	zend_mm_free_slot *p, *end;  local
1370 heap->free_slot[bin_num] = p = (zend_mm_free_slot*)((char*)bin + bin_data_size[bin_num]);
1372 …zend_mm_set_next_free_slot(heap, bin_num, p, (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num…
1375 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1379 p = (zend_mm_free_slot*)((char*)p + bin_data_size[bin_num]);
1380 } while (p != end);
1383 p->next_free_slot = NULL;
1386 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + bin_data_size[bin_num] - ZEND_MM_ALIGNE…
1409 zend_mm_free_slot *p = heap->free_slot[bin_num]; local
1410 heap->free_slot[bin_num] = zend_mm_get_next_free_slot(heap, bin_num, p);
1411 return p;
1421 zend_mm_free_slot *p; local
1434 p = (zend_mm_free_slot*)ptr;
1435 zend_mm_set_next_free_slot(heap, bin_num, p, heap->free_slot[bin_num]);
1436 heap->free_slot[bin_num] = p;
2074 zend_mm_free_slot *p, *q; local
2095 p = heap->free_slot[i];
2096 while (p != NULL) {
2097 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
2099 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
2116 p = zend_mm_get_next_free_slot(heap, i, p);
2124 p = q->next_free_slot;
2125 while (p != NULL) {
2126 chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(p, ZEND_MM_CHUNK_SIZE);
2128 page_offset = ZEND_MM_ALIGNED_OFFSET(p, ZEND_MM_CHUNK_SIZE);
2142 p = zend_mm_get_next_free_slot(heap, i, p);
2144 q->next_free_slot = p;
2146 zend_mm_set_next_free_slot(heap, i, q, p);
2149 q = p;
2151 p = q->next_free_slot;
2153 p = zend_mm_get_next_free_slot(heap, i, q);
2203 static zend_long zend_mm_find_leaks_small(zend_mm_chunk *p, uint32_t i, uint32_t j, zend_leak_info … argument
2207 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2208 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2225 zend_mm_bitset_reset_range(p->free_map, i, bin_pages[bin_num]);
2230 static zend_long zend_mm_find_leaks(zend_mm_heap *heap, zend_mm_chunk *p, uint32_t i, zend_leak_inf… argument
2235 while (i < p->free_tail) {
2236 if (zend_mm_bitset_is_set(p->free_map, i)) {
2237 if (p->map[i] & ZEND_MM_IS_SRUN) {
2238 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2239 count += zend_mm_find_leaks_small(p, i, 0, leak);
2242 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2243 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2248 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2255 p = p->next;
2257 } while (p != heap->main_chunk);
2265 zend_mm_huge_list *p = list->next; local
2267 while (p) {
2268 if (p->dbg.filename == list->dbg.filename && p->dbg.lineno == list->dbg.lineno) {
2269 prev->next = p->next;
2270 zend_mm_chunk_free(heap, p->ptr, p->size);
2271 zend_mm_free_heap(heap, p, NULL, 0, NULL, 0);
2274 prev = p;
2276 p = prev->next;
2285 zend_mm_chunk *p; local
2317 p = heap->main_chunk;
2320 while (i < p->free_tail) {
2321 if (zend_mm_bitset_is_set(p->free_map, i)) {
2322 if (p->map[i] & ZEND_MM_IS_SRUN) {
2323 int bin_num = ZEND_MM_SRUN_BIN_NUM(p->map[i]);
2324 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[b…
2329 … leak.addr = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * i + bin_data_size[bin_num] * j);
2343 repeated = zend_mm_find_leaks_small(p, i, j + 1, &leak) +
2344 zend_mm_find_leaks(heap, p, i + bin_pages[bin_num], &leak);
2355 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]);
2356 …zend_mm_debug_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) -…
2358 leak.addr = (void*)((char*)p + ZEND_MM_PAGE_SIZE * i);
2368 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2370 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2381 p = p->next;
2382 } while (p != heap->main_chunk);
2396 zend_mm_chunk *p; local
2448 p = heap->main_chunk->next;
2449 while (p != heap->main_chunk) {
2450 zend_mm_chunk *q = p->next;
2451 p->next = heap->cached_chunks;
2452 heap->cached_chunks = p;
2453 p = q;
2461 p = heap->cached_chunks;
2462 heap->cached_chunks = p->next;
2463 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2472 p = heap->cached_chunks;
2473 heap->cached_chunks = p->next;
2474 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
2478 p = heap->cached_chunks;
2479 while (p != NULL) {
2480 zend_mm_chunk *q = p->next;
2481 memset(p, 0, sizeof(zend_mm_chunk));
2482 p->next = q;
2483 p = q;
2487 p = heap->main_chunk;
2488 p->heap = &p->heap_slot;
2489 p->next = p;
2490 p->prev = p;
2491 p->free_pages = ZEND_MM_PAGES - ZEND_MM_FIRST_PAGE;
2492 p->free_tail = ZEND_MM_FIRST_PAGE;
2493 p->num = 0;
2510 memset(p->free_map, 0, sizeof(p->free_map) + sizeof(p->map));
2511 p->free_map[0] = (1L << ZEND_MM_FIRST_PAGE) - 1;
2512 p->map[0] = ZEND_MM_LRUN(ZEND_MM_FIRST_PAGE);
2801 void *p; local
2804 p = _emalloc(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2805 memset(p, 0, size);
2806 return p;
2812 char *p; local
2818 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2819 memcpy(p, s, length+1);
2820 return p;
2825 char *p; local
2830 p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
2831 memcpy(p, s, length);
2832 p[length] = 0;
2833 return p;
2840 char *p; local
2845 p = (char *) malloc(length + 1);
2846 if (UNEXPECTED(p == NULL)) {
2850 memcpy(p, s, length);
2852 p[length] = 0;
2853 return p;
2865 zend_mm_chunk *p = heap->cached_chunks; local
2866 heap->cached_chunks = p->next;
2867 zend_mm_chunk_free(heap, p, ZEND_MM_CHUNK_SIZE);
3297 ZEND_API void * __zend_realloc(void *p, size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument
3299 p = realloc(p, len);
3300 if (EXPECTED(p || !len)) {
3301 return p;
3306 ZEND_API void __zend_free(void *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
3308 free(p);