Lines Matching refs:pool
34 MYSQLND_MEMORY_POOL * pool = chunk->pool; in mysqlnd_mempool_free_chunk() local
38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_free_chunk()
43 pool->free_size += chunk->size; in mysqlnd_mempool_free_chunk()
45 pool->refcount--; in mysqlnd_mempool_free_chunk()
61 MYSQLND_MEMORY_POOL * pool = chunk->pool; in mysqlnd_mempool_resize_chunk() local
63 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_resize_chunk()
68 if ((chunk->size + pool->free_size) < size) { in mysqlnd_mempool_resize_chunk()
76 pool->free_size += chunk->size; in mysqlnd_mempool_resize_chunk()
78 chunk->pool = NULL; /* now we have no pool memory */ in mysqlnd_mempool_resize_chunk()
79 pool->refcount--; in mysqlnd_mempool_resize_chunk()
82 pool->free_size += (chunk->size - size); in mysqlnd_mempool_resize_chunk()
97 chunk->pool = NULL; /* now we have non-pool memory */ in mysqlnd_mempool_resize_chunk()
98 pool->refcount--; in mysqlnd_mempool_resize_chunk()
115 MYSQLND_MEMORY_POOL_CHUNK * mysqlnd_mempool_get_chunk(MYSQLND_MEMORY_POOL * pool, unsigned int size… in mysqlnd_mempool_get_chunk() argument
130 chunk->pool = pool; in mysqlnd_mempool_get_chunk()
131 if (size > pool->free_size) { in mysqlnd_mempool_get_chunk()
140 ++pool->refcount; in mysqlnd_mempool_get_chunk()
141 chunk->ptr = pool->arena + (pool->arena_size - pool->free_size); in mysqlnd_mempool_get_chunk()
143 pool->free_size -= size; in mysqlnd_mempool_get_chunk()
176 mysqlnd_mempool_destroy(MYSQLND_MEMORY_POOL * pool TSRMLS_DC) in mysqlnd_mempool_destroy()
180 mnd_free(pool->arena); in mysqlnd_mempool_destroy()
181 mnd_free(pool); in mysqlnd_mempool_destroy()