Lines Matching refs:ptr
38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_free_chunk()
47 mnd_free(chunk->ptr); in mysqlnd_mempool_free_chunk()
63 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_resize_chunk()
74 memcpy(new_ptr, chunk->ptr, chunk->size); in mysqlnd_mempool_resize_chunk()
75 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
94 memcpy(new_ptr, chunk->ptr, chunk->size); in mysqlnd_mempool_resize_chunk()
95 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
102 zend_uchar *new_ptr = mnd_realloc(chunk->ptr, size); in mysqlnd_mempool_resize_chunk()
106 chunk->ptr = new_ptr; in mysqlnd_mempool_resize_chunk()
133 chunk->ptr = mnd_malloc(size); in mysqlnd_mempool_get_chunk()
134 if (!chunk->ptr) { in mysqlnd_mempool_get_chunk()
141 chunk->ptr = pool->arena + (pool->arena_size - pool->free_size); in mysqlnd_mempool_get_chunk()