Searched refs:pool (Results 1 - 25 of 295) sorted by relevance

1234567891011>>

/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.c38 void memory_pool_init(struct memory_pool * pool) argument
40 memset(pool, 0, sizeof(struct memory_pool));
44 void memory_pool_destroy(struct memory_pool * pool) argument
46 while(pool->blocks) {
47 struct memory_block * block = pool->blocks;
48 pool->blocks = block->next;
53 static void refill_pool(struct memory_pool * pool) argument
55 unsigned int blocksize = pool->total_allocated;
62 newblock->next = pool->blocks;
63 pool
71 memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) argument
[all...]
H A Dmemory_pool.h29 * Provides a pool of memory that can quickly be allocated from, at the
31 * Instead, the entire pool can be freed at once.
45 void memory_pool_init(struct memory_pool * pool);
46 void memory_pool_destroy(struct memory_pool * pool);
47 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes);
58 * memory_pool_array_reserve(pool, type, Array, Size, Reserved, k);
66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \
73 newarray = memory_pool_malloc((pool), newreserve * sizeof(type)); \
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_slab.c46 util_slab_get_block(struct util_slab_mempool *pool, argument
51 (pool->block_size * index));
54 static void util_slab_add_new_page(struct util_slab_mempool *pool) argument
60 page = MALLOC(pool->page_size);
61 insert_at_tail(&pool->list, page);
64 for (i = 0; i < pool->num_blocks-1; i++) {
65 block = util_slab_get_block(pool, page, i);
66 block->next_free = util_slab_get_block(pool, page, i+1);
70 block = util_slab_get_block(pool, page, pool
81 util_slab_alloc_st(struct util_slab_mempool *pool) argument
95 util_slab_free_st(struct util_slab_mempool *pool, void *ptr) argument
106 util_slab_alloc_mt(struct util_slab_mempool *pool) argument
116 util_slab_free_mt(struct util_slab_mempool *pool, void *ptr) argument
123 util_slab_set_thread_safety(struct util_slab_mempool *pool, enum util_slab_threading threading) argument
137 util_slab_create(struct util_slab_mempool *pool, unsigned item_size, unsigned num_blocks, enum util_slab_threading threading) argument
159 util_slab_destroy(struct util_slab_mempool *pool) argument
[all...]
H A Du_slab.h57 void *(*alloc)(struct util_slab_mempool *pool);
58 void (*free)(struct util_slab_mempool *pool, void *ptr);
74 void util_slab_create(struct util_slab_mempool *pool,
79 void util_slab_destroy(struct util_slab_mempool *pool);
81 void util_slab_set_thread_safety(struct util_slab_mempool *pool,
84 #define util_slab_alloc(pool) (pool)->alloc(pool)
85 #define util_slab_free(pool, ptr) (pool)
[all...]
/external/skia/tests/
H A DDiscardableMemoryPoolTest.cpp12 SkAutoTUnref<SkDiscardableMemoryPool> pool(
14 pool->setRAMBudget(3);
15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100));
19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed());
21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200));
26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
27 pool->setRAMBudget(400);
29 REPORTER_ASSERT(reporter, 200 == pool
[all...]
/external/llvm/unittests/Support/
H A DStringPool.cpp18 StringPool pool; local
19 const PooledStringPtr a = pool.intern("a");
20 const PooledStringPtr b = pool.intern("b");
25 StringPool pool; local
26 const PooledStringPtr a = pool.intern("a");
27 const PooledStringPtr b = pool.intern("b");
/external/javassist/src/main/javassist/
H A DTranslator.java35 * @param pool the <code>ClassPool</code> that this translator
42 void start(ClassPool pool) argument
50 * pool.get(classname).toBytecode()</pre></ul>
60 * @param pool the <code>ClassPool</code> that this translator
68 void onLoad(ClassPool pool, String classname) argument
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DConnectionPoolTest.java65 private ConnectionPool pool; field in class:ConnectionPoolTest
105 pool = new ConnectionPool(poolSize, KEEP_ALIVE_DURATION_MS);
108 pool.replaceCleanupExecutorForTests(cleanupExecutor);
109 httpA = new Connection(pool, httpRoute);
111 httpB = new Connection(pool, httpRoute);
113 httpC = new Connection(pool, httpRoute);
115 httpD = new Connection(pool, httpRoute);
117 httpE = new Connection(pool, httpRoute);
119 spdyA = new Connection(pool, spdyRoute);
149 Connection connection = pool
552 assertPooled(ConnectionPool pool, Connection... connections) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_bufmgr_pool.c31 * Batch buffer pool management.
109 struct pool_pb_manager *pool = pool_buf->mgr; local
113 pipe_mutex_lock(pool->mutex);
114 LIST_ADD(&pool_buf->head, &pool->free);
115 pool->numFree++;
116 pipe_mutex_unlock(pool->mutex);
124 struct pool_pb_manager *pool = pool_buf->mgr; local
129 pipe_mutex_lock(pool->mutex);
130 map = (unsigned char *) pool->map + pool_buf->start;
131 pipe_mutex_unlock(pool
149 struct pool_pb_manager *pool = pool_buf->mgr; local
159 struct pool_pb_manager *pool = pool_buf->mgr; local
170 struct pool_pb_manager *pool = pool_buf->mgr; local
192 struct pool_pb_manager *pool = pool_pb_manager(mgr); local
240 struct pool_pb_manager *pool = pool_pb_manager(mgr); local
260 struct pool_pb_manager *pool; local
[all...]
/external/llvm/test/MC/ARM/
H A Dpool.s6 .global pool
7 .type pool,%function
8 pool: label
11 .pool
13 @ CHECK-LABEL: pool
/external/fio/
H A Dsmalloc.c28 #define INITIAL_SIZE 16*1024*1024 /* new pool size */
37 struct pool { struct
38 struct fio_mutex *lock; /* protects this pool */
54 static struct pool mp[MAX_POOLS];
59 static inline void pool_lock(struct pool *pool) argument
61 fio_mutex_down(pool->lock);
64 static inline void pool_unlock(struct pool *pool) argument
66 fio_mutex_up(pool
89 ptr_valid(struct pool *pool, void *ptr) argument
101 blocks_iter(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks, int (*func)(unsigned int *map, unsigned int mask)) argument
156 blocks_free(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument
162 set_blocks(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument
168 clear_blocks(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument
181 add_pool(struct pool *pool, unsigned int alloc_size) argument
250 cleanup_pool(struct pool *pool) argument
319 sfree_pool(struct pool *pool, void *ptr) argument
349 struct pool *pool = NULL; local
370 __smalloc_pool(struct pool *pool, size_t size) argument
425 smalloc_pool(struct pool *pool, size_t size) argument
[all...]
/external/mesa3d/src/gallium/drivers/r600/
H A Dcompute_memory_pool.c74 * Creates a new pool
79 struct compute_memory_pool* pool = (struct compute_memory_pool*) local
84 pool->screen = rscreen;
85 return pool;
88 static void compute_memory_pool_init(struct compute_memory_pool * pool, argument
95 /* XXX: pool->shadow is used when the buffer needs to be resized, but
97 * pool->shadow = (uint32_t*)CALLOC(4, pool->size_in_dw);
99 pool->next_id = 1;
100 pool
108 compute_memory_pool_delete(struct compute_memory_pool* pool) argument
123 compute_memory_prealloc_chunk( struct compute_memory_pool* pool, int64_t size_in_dw) argument
157 compute_memory_postalloc_chunk( struct compute_memory_pool* pool, int64_t start_in_dw) argument
187 compute_memory_grow_pool(struct compute_memory_pool* pool, struct pipe_context * pipe, int new_size_in_dw) argument
228 compute_memory_shadow(struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host) argument
247 compute_memory_finalize_pending(struct compute_memory_pool* pool, struct pipe_context * pipe) argument
351 compute_memory_free(struct compute_memory_pool* pool, int64_t id) argument
387 compute_memory_alloc( struct compute_memory_pool* pool, int64_t size_in_dw) argument
421 compute_memory_transfer( struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host, struct compute_memory_item* chunk, void* data, int offset_in_chunk, int size) argument
470 compute_memory_transfer_direct( struct compute_memory_pool* pool, int chunk_to_data, struct compute_memory_item* chunk, struct r600_resource* data, int offset_in_chunk, int offset_in_data, int size) argument
[all...]
H A Dcompute_memory_pool.h38 int64_t start_in_dw; ///Start pointer in dwords relative in the pool bo
41 struct compute_memory_pool* pool; member in struct:compute_memory_item
50 int64_t size_in_dw; ///Size of the pool in dwords
52 struct r600_resource *bo; ///The pool buffer object resource
56 uint32_t *shadow; ///host copy of the pool, used for defragmentation
60 struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen); ///Creates a new pool
61 void compute_memory_pool_delete(struct compute_memory_pool* pool); ///Frees all stuff in the pool and the pool struct itself too
63 int64_t compute_memory_prealloc_chunk(struct compute_memory_pool* pool, int64_
[all...]
/external/libunwind/src/mi/
H A Dmempool.c86 free_object (struct mempool *pool, void *object) argument
90 obj->next = pool->free_list;
91 pool->free_list = obj;
92 ++pool->num_free;
96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) argument
101 free_object (pool, obj);
105 expand (struct mempool *pool) argument
110 size = pool->chunk_size;
114 size = UNW_ALIGN(pool->obj_size, pg_size);
119 size = pool
127 mempool_init(struct mempool *pool, size_t obj_size, size_t reserve) argument
154 mempool_alloc(struct mempool *pool) argument
175 mempool_free(struct mempool *pool, void *object) argument
[all...]
/external/deqp/framework/delibs/depool/
H A DdeMemPool.c21 * \brief Memory pool management.
48 * Represent a page of memory allocate by a memory pool.
69 * \brief Memory pool.
71 * A pool of memory from which individual memory allocations can be made.
73 * but rather all of the memory allocated from a pool is freed when the pool
76 * The pools can be arranged into a hierarchy. If a pool with children is
78 * the pool itself.
82 * creating the root pool with the deMemPool_createFailingRoot() function.
92 deMemPool* firstChild; /*!< Pointer to first child pool i
171 deMemPool* pool; local
243 deMemPool* pool = createPoolInternal(DE_NULL); local
283 deMemPool* pool; local
298 deMemPool_destroy(deMemPool* pool) argument
378 deMemPool_getNumChildren(const deMemPool* pool) argument
390 deMemPool_getNumAllocatedBytes(const deMemPool* pool, deBool recurse) argument
408 deMemPool_getCapacity(const deMemPool* pool, deBool recurse) argument
426 deMemPool_allocInternal(deMemPool* pool, int numBytes, deUint32 alignBytes) argument
499 deMemPool_alloc(deMemPool* pool, int numBytes) argument
517 deMemPool_alignedAlloc(deMemPool* pool, int numBytes, deUint32 alignBytes) argument
536 deMemPool_memDup(deMemPool* pool, const void* ptr, int numBytes) argument
550 deMemPool_strDup(deMemPool* pool, const char* str) argument
566 deMemPool_strnDup(deMemPool* pool, const char* str, int maxLength) argument
580 deMemPool_getMaxNumAllocatedBytes(const deMemPool* pool) argument
586 deMemPool_getMaxCapacity(const deMemPool* pool) argument
[all...]
H A DdeMemPool.h23 * \brief Memory pool management.
29 /** Enable support for failure-simulating pool allocations. */
35 /** Enable support for memory tracking of pools (will collect the maximum memory consumption to root pool). */
47 DE_POOL_DEFAULT_ALLOC_ALIGNMENT = DE_PTR_SIZE /*!< Default alignment for pool allocations (in bytes). */
50 /** Macro for allocating a new struct from a pool (leaves it uninitialized!). */
67 void deMemPool_destroy (deMemPool* pool);
68 int deMemPool_getNumChildren (const deMemPool* pool);
69 int deMemPool_getNumAllocatedBytes (const deMemPool* pool, deBool recurse);
70 int deMemPool_getCapacity (const deMemPool* pool, deBool recurse);
72 void* deMemPool_alloc (deMemPool* pool, in
[all...]
/external/deqp/framework/platform/ios/
H A DtcuIOSMain.m28 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
30 [pool release];
/external/guava/guava-tests/test/com/google/common/collect/
H A DInternersTest.java38 Interner<String> pool = Interners.newStrongInterner();
39 assertSame(canonical, pool.intern(canonical));
40 assertSame(canonical, pool.intern(not));
44 Interner<String> pool = Interners.newStrongInterner();
46 pool.intern(null);
55 Interner<String> pool = Interners.newWeakInterner();
56 assertSame(canonical, pool.intern(canonical));
57 assertSame(canonical, pool.intern(not));
61 Interner<String> pool = Interners.newWeakInterner();
63 pool
[all...]
/external/javassist/src/main/javassist/bytecode/annotation/
H A DAnnotationsWriter.java31 * ConstPool pool = ...;
33 * writer = new AnnotationsWriter(output, pool);
45 * = new AnnotationsAttribute(pool, AnnotationsAttribute.visibleTag,
61 private ConstPool pool; field in class:AnnotationsWriter
67 * @param cp the constant pool.
71 pool = cp;
75 * Obtains the constant pool given to the constructor.
78 return pool;
121 annotation(pool.addUtf8Info(type), numMemberValuePairs);
150 memberValuePair(pool
[all...]
/external/jsilver/src/com/google/clearsilver/jsilver/output/
H A DThreadLocalOutputBufferProvider.java24 private final ThreadLocal<StringBuilder> pool; field in class:ThreadLocalOutputBufferProvider
28 pool = new ThreadLocal<StringBuilder>() {
45 StringBuilder sb = pool.get();
53 if (buffer != pool.get()) {
/external/skia/gm/
H A Dsystem_preferences_mac.mm13 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
27 [pool release];
/external/javassist/src/main/javassist/bytecode/
H A DInstructionPrinter.java41 ConstPool pool = info.getConstPool();
55 stream.println(pos + ": " + instructionString(iterator, pos, pool));
59 public static String instructionString(CodeIterator iter, int pos, ConstPool pool) { argument
72 return opstring + " " + ldc(pool, iter.byteAt(pos + 1));
75 return opstring + " " + ldc(pool, iter.u16bitAt(pos + 1));
119 return opstring + " " + fieldInfo(pool, iter.u16bitAt(pos + 1));
123 return opstring + " " + methodInfo(pool, iter.u16bitAt(pos + 1));
125 return opstring + " " + interfaceMethodInfo(pool, iter.u16bitAt(pos + 1));
129 return opstring + " " + classInfo(pool, iter.u16bitAt(pos + 1));
134 return opstring + " " + classInfo(pool, ite
195 classInfo(ConstPool pool, int index) argument
200 interfaceMethodInfo(ConstPool pool, int index) argument
207 methodInfo(ConstPool pool, int index) argument
215 fieldInfo(ConstPool pool, int index) argument
262 ldc(ConstPool pool, int index) argument
[all...]
/external/deqp/framework/delibs/decpp/
H A DdeMemPool.cpp21 * \brief Memory pool (deMemPool wrapper).
32 char* copyToPool (de::MemPool* pool, const char* string) argument
35 char* copy = (char*)pool->alloc(size);
/external/fio/examples/
H A Drbd.fio16 pool=rbd
/external/v8/tools/testrunner/local/
H A Dpool_unittest.py8 from pool import Pool
18 pool = Pool(3)
19 for result in pool.imap_unordered(Run, [[x] for x in range(0, 10)]):
25 pool = Pool(3)
26 for result in pool.imap_unordered(Run, [[x] for x in range(0, 12)]):
35 pool = Pool(3)
36 for result in pool.imap_unordered(Run, [[x] for x in range(0, 10)]):
39 pool.add([result + 20])

Completed in 692 milliseconds

1234567891011>>