Lines Matching refs:pool
29 mysqlnd_mempool_free_chunk(MYSQLND_MEMORY_POOL * pool, MYSQLND_MEMORY_POOL_CHUNK * chunk) in mysqlnd_mempool_free_chunk() argument
34 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_free_chunk()
39 pool->free_size += chunk->size; in mysqlnd_mempool_free_chunk()
52 mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL * pool, MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigne… in mysqlnd_mempool_resize_chunk() argument
57 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { in mysqlnd_mempool_resize_chunk()
62 if ((chunk->size + pool->free_size) < size) { in mysqlnd_mempool_resize_chunk()
70 pool->free_size += chunk->size; in mysqlnd_mempool_resize_chunk()
75 pool->free_size += (chunk->size - size); in mysqlnd_mempool_resize_chunk()
107 MYSQLND_MEMORY_POOL_CHUNK * mysqlnd_mempool_get_chunk(MYSQLND_MEMORY_POOL * pool, unsigned int size) in mysqlnd_mempool_get_chunk() argument
120 if (size > pool->free_size) { in mysqlnd_mempool_get_chunk()
124 pool->free_chunk(pool, chunk); in mysqlnd_mempool_get_chunk()
129 chunk->ptr = pool->arena + (pool->arena_size - pool->free_size); in mysqlnd_mempool_get_chunk()
131 pool->free_size -= size; in mysqlnd_mempool_get_chunk()
165 mysqlnd_mempool_destroy(MYSQLND_MEMORY_POOL * pool) in mysqlnd_mempool_destroy() argument
169 mnd_efree(pool->arena); in mysqlnd_mempool_destroy()
170 mnd_efree(pool); in mysqlnd_mempool_destroy()