Lines Matching refs:pool
97 tbb::memory_pool<NullAllocator> pool; in TestZeroSpaceMemoryPool() local
98 bool allocated = pool.malloc(16) || pool.malloc(9*1024); in TestZeroSpaceMemoryPool()
132 tbb::fixed_pool pool(buf, sz); in TestSmallFixedSizePool() local
137 allocated = pool.malloc( 16 ) || pool.malloc( 9*1024 ); in TestSmallFixedSizePool()
150 rml::MemoryPool *pool; in TestSmallFixedSizePool() local
153 rml::MemPoolError ret = pool_create_v1((intptr_t)&fixedPool, &pol, &pool); in TestSmallFixedSizePool()
156 allocated = pool_malloc(pool, 16) || pool_malloc(pool, 9*1024); in TestSmallFixedSizePool()
157 pool_destroy(pool); in TestSmallFixedSizePool()
166 tbb::fixed_pool pool(nullptr, 10*1024*1024); in TestSmallFixedSizePool() local
190 tbb::memory_pool<tbb::scalable_allocator<int>> pool; variable
191 TestAllocator(Concept, tbb::memory_pool_allocator<void>(pool));
198 tbb::fixed_pool pool(buf, sizeof(buf));
200 char *p1 = (char*)pool.malloc( 16 );
203 char *p2 = (char*)pool.realloc( p1, 15 );
206 TestAllocator(Concept, tbb::memory_pool_allocator<void>(pool) );
209 char *p3 = (char*)pool.realloc( p2, sizeof(buf)-128*1024 );
213 REQUIRE( pool.malloc( sz ) );
214 pool.recycle();
217 TestAllocator(Concept, tbb::memory_pool_allocator<void>(pool) );