/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionPoolTest.java | 65 private ConnectionPool pool; field in ConnectionPoolTest 105 pool = new ConnectionPool(poolSize, KEEP_ALIVE_DURATION_MS); in setUp() 108 pool.replaceCleanupExecutorForTests(cleanupExecutor); in setUp() 109 httpA = new Connection(pool, httpRoute); in setUp() 111 httpB = new Connection(pool, httpRoute); in setUp() 113 httpC = new Connection(pool, httpRoute); in setUp() 115 httpD = new Connection(pool, httpRoute); in setUp() 117 httpE = new Connection(pool, httpRoute); in setUp() 119 spdyA = new Connection(pool, spdyRoute); in setUp() 149 Connection connection = pool.get(httpAddress); in poolSingleHttpConnection() [all …]
|
/external/libmicrohttpd/src/microhttpd/ |
D | memorypool.c | 89 struct MemoryPool *pool; in MHD_pool_create() local 91 pool = malloc (sizeof (struct MemoryPool)); in MHD_pool_create() 92 if (NULL == pool) in MHD_pool_create() 96 pool->memory = MAP_FAILED; in MHD_pool_create() 99 pool->memory = mmap (NULL, max, PROT_READ | PROT_WRITE, in MHD_pool_create() 102 pool->memory = VirtualAlloc(NULL, max, MEM_COMMIT | MEM_RESERVE, in MHD_pool_create() 106 pool->memory = MAP_FAILED; in MHD_pool_create() 108 if ((pool->memory == MAP_FAILED) || (pool->memory == NULL)) in MHD_pool_create() 110 pool->memory = malloc (max); in MHD_pool_create() 111 if (pool->memory == NULL) in MHD_pool_create() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_slab.c | 46 util_slab_get_block(struct util_slab_mempool *pool, in util_slab_get_block() argument 51 (pool->block_size * index)); in util_slab_get_block() 54 static void util_slab_add_new_page(struct util_slab_mempool *pool) in util_slab_add_new_page() argument 60 page = MALLOC(pool->page_size); in util_slab_add_new_page() 61 insert_at_tail(&pool->list, page); in util_slab_add_new_page() 64 for (i = 0; i < pool->num_blocks-1; i++) { in util_slab_add_new_page() 65 block = util_slab_get_block(pool, page, i); in util_slab_add_new_page() 66 block->next_free = util_slab_get_block(pool, page, i+1); in util_slab_add_new_page() 70 block = util_slab_get_block(pool, page, pool->num_blocks-1); in util_slab_add_new_page() 71 block->next_free = pool->first_free; in util_slab_add_new_page() [all …]
|
D | u_slab.h | 57 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) argument 85 #define util_slab_free(pool, ptr) (pool)->free(pool, ptr) argument
|
/external/dbus/dbus/ |
D | dbus-mempool.c | 141 DBusMemPool *pool; in _dbus_mem_pool_new() local 143 pool = dbus_new0 (DBusMemPool, 1); in _dbus_mem_pool_new() 144 if (pool == NULL) in _dbus_mem_pool_new() 160 pool->element_size = _DBUS_ALIGN_VALUE (element_size, sizeof (void *)); in _dbus_mem_pool_new() 162 pool->zero_elements = zero_elements != FALSE; in _dbus_mem_pool_new() 164 pool->allocated_elements = 0; in _dbus_mem_pool_new() 171 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new() 173 _dbus_assert ((pool->block_size % in _dbus_mem_pool_new() 174 pool->element_size) == 0); in _dbus_mem_pool_new() 176 VALGRIND_CREATE_MEMPOOL (pool, 0, zero_elements) in _dbus_mem_pool_new() [all …]
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
D | pb_bufmgr_pool.c | 109 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_destroy() local 113 pipe_mutex_lock(pool->mutex); in pool_buffer_destroy() 114 LIST_ADD(&pool_buf->head, &pool->free); in pool_buffer_destroy() 115 pool->numFree++; in pool_buffer_destroy() 116 pipe_mutex_unlock(pool->mutex); in pool_buffer_destroy() 124 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_map() local 129 pipe_mutex_lock(pool->mutex); in pool_buffer_map() 130 map = (unsigned char *) pool->map + pool_buf->start; in pool_buffer_map() 131 pipe_mutex_unlock(pool->mutex); in pool_buffer_map() 149 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_validate() local [all …]
|
/external/deqp/framework/delibs/depool/ |
D | deMemPool.c | 171 deMemPool* pool; in createPoolInternal() local 189 pool = (deMemPool*)(initialPage + 1); in createPoolInternal() 192 memset(pool, 0, sizeof(deMemPool)); in createPoolInternal() 193 pool->currentPage = initialPage; in createPoolInternal() 196 pool->parent = parent; in createPoolInternal() 200 if (parent->firstChild) parent->firstChild->prevPool = pool; in createPoolInternal() 201 pool->nextPool = parent->firstChild; in createPoolInternal() 202 parent->firstChild = pool; in createPoolInternal() 206 pool->util = parent ? parent->util : DE_NULL; in createPoolInternal() 209 pool->allowFailing = parent ? parent->allowFailing : DE_FALSE; in createPoolInternal() [all …]
|
D | deMemPool.h | 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, size_t numBytes); 73 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes); 74 void* deMemPool_memDup (deMemPool* pool, const void* ptr, size_t numBytes); 75 char* deMemPool_strDup (deMemPool* pool, const char* str); 76 char* deMemPool_strnDup (deMemPool* pool, const char* str, int maxLength); 79 int deMemPool_getMaxNumAllocatedBytes (const deMemPool* pool); [all …]
|
/external/chromium-trace/catapult/third_party/typ/typ/tests/ |
D | pool_test.py | 20 from typ.pool import make_pool, _MessageType, _ProcessPool, _loop 54 pool = make_pool(host, jobs, _echo, context, _pre, _post) 55 pool.send('hello') 56 pool.send('world') 57 msg1 = pool.get() 58 msg2 = pool.get() 59 pool.close() 60 final_contexts = pool.join() 68 def run_through_loop(self, callback=None, pool=None): argument 70 if pool: [all …]
|
/external/fio/ |
D | smalloc.c | 37 struct pool { struct 54 static struct pool mp[MAX_POOLS]; argument 59 static inline void pool_lock(struct pool *pool) in pool_lock() argument 61 fio_mutex_down(pool->lock); in pool_lock() 64 static inline void pool_unlock(struct pool *pool) in pool_unlock() argument 66 fio_mutex_up(pool->lock); in pool_unlock() 89 static inline int ptr_valid(struct pool *pool, void *ptr) in ptr_valid() argument 91 unsigned int pool_size = pool->nr_blocks * SMALLOC_BPL; in ptr_valid() 93 return (ptr >= pool->map) && (ptr < pool->map + pool_size); in ptr_valid() 101 static int blocks_iter(struct pool *pool, unsigned int pool_idx, in blocks_iter() argument [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | compute_memory_pool.c | 79 struct compute_memory_pool* pool = (struct compute_memory_pool*) in compute_memory_pool_new() local 84 pool->screen = rscreen; in compute_memory_pool_new() 85 return pool; in compute_memory_pool_new() 88 static void compute_memory_pool_init(struct compute_memory_pool * pool, in compute_memory_pool_init() argument 99 pool->next_id = 1; in compute_memory_pool_init() 100 pool->size_in_dw = initial_size_in_dw; in compute_memory_pool_init() 101 pool->bo = (struct r600_resource*)create_pool_texture(pool->screen, in compute_memory_pool_init() 102 pool->size_in_dw); in compute_memory_pool_init() 108 void compute_memory_pool_delete(struct compute_memory_pool* pool) in compute_memory_pool_delete() argument 111 free(pool->shadow); in compute_memory_pool_delete() [all …]
|
D | compute_memory_pool.h | 41 struct compute_memory_pool* pool; member 61 void compute_memory_pool_delete(struct compute_memory_pool* pool); ///Frees all stuff in the pool a… 63 int64_t compute_memory_prealloc_chunk(struct compute_memory_pool* pool, int64_t size_in_dw); ///sea… 65 struct compute_memory_item* compute_memory_postalloc_chunk(struct compute_memory_pool* pool, int64_… 70 void compute_memory_grow_pool(struct compute_memory_pool* pool, struct pipe_context * pipe, 76 void compute_memory_shadow(struct compute_memory_pool* pool, 82 void compute_memory_finalize_pending(struct compute_memory_pool* pool, 84 void compute_memory_defrag(struct compute_memory_pool* pool); ///Defragment the memory pool, always… 85 void compute_memory_free(struct compute_memory_pool* pool, int64_t id); 86 struct compute_memory_item* compute_memory_alloc(struct compute_memory_pool* pool, int64_t size_in_… [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) in memory_pool_init() argument 40 memset(pool, 0, sizeof(struct memory_pool)); in memory_pool_init() 44 void memory_pool_destroy(struct memory_pool * pool) in memory_pool_destroy() argument 46 while(pool->blocks) { in memory_pool_destroy() 47 struct memory_block * block = pool->blocks; in memory_pool_destroy() 48 pool->blocks = block->next; in memory_pool_destroy() 53 static void refill_pool(struct memory_pool * pool) in refill_pool() argument 55 unsigned int blocksize = pool->total_allocated; in refill_pool() 62 newblock->next = pool->blocks; in refill_pool() 63 pool->blocks = newblock; in refill_pool() [all …]
|
/external/libunwind/src/mi/ |
D | mempool.c | 86 free_object (struct mempool *pool, void *object) in free_object() argument 90 obj->next = pool->free_list; in free_object() 91 pool->free_list = obj; in free_object() 92 ++pool->num_free; in free_object() 96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) in add_memory() argument 101 free_object (pool, obj); in add_memory() 105 expand (struct mempool *pool) in expand() argument 110 size = pool->chunk_size; in expand() 114 size = UNW_ALIGN(pool->obj_size, pg_size); in expand() 119 size = pool->obj_size; in expand() [all …]
|
/external/autotest/ |
D | suite_scheduler.ini | 24 pool: suites key 32 pool: suites key 39 pool: suites key 46 pool: suites key 53 pool: chameleon_audio key 61 pool: chameleon_audio_stable key 68 pool: chameleon_audio_stable key 77 pool: chameleon key 85 pool: chameleon key 93 pool: chameleon key [all …]
|
/external/zopfli/src/zopfli/ |
D | katajainen.c | 67 static Node* GetFreeNode(Node* (*lists)[2], int maxbits, NodePool* pool) { in GetFreeNode() argument 69 if (pool->next >= &pool->nodes[pool->size]) { in GetFreeNode() 72 for (i = 0; i < pool->size; i++) { in GetFreeNode() 73 pool->nodes[i].inuse = 0; in GetFreeNode() 83 pool->next = &pool->nodes[0]; in GetFreeNode() 85 if (!pool->next->inuse) break; /* Found one. */ in GetFreeNode() 86 pool->next++; in GetFreeNode() 88 return pool->next++; in GetFreeNode() 106 Node* leaves, int numsymbols, NodePool* pool, int index, char final) { in BoundaryPM() argument 113 newchain = GetFreeNode(lists, maxbits, pool); in BoundaryPM() [all …]
|
/external/javassist/src/main/javassist/bytecode/ |
D | InstructionPrinter.java | 41 ConstPool pool = info.getConstPool(); in print() local 55 stream.println(pos + ": " + instructionString(iterator, pos, pool)); in print() 59 public static String instructionString(CodeIterator iter, int pos, ConstPool pool) { in instructionString() argument 72 return opstring + " " + ldc(pool, iter.byteAt(pos + 1)); in instructionString() 75 return opstring + " " + ldc(pool, iter.u16bitAt(pos + 1)); in instructionString() 119 return opstring + " " + fieldInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 123 return opstring + " " + methodInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 125 return opstring + " " + interfaceMethodInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 129 return opstring + " " + classInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 134 return opstring + " " + classInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | Pools.java | 27 Pool pool = typePools.get(type); in get() local 28 if (pool == null) { in get() 29 pool = new ReflectionPool(type, 4, max); in get() 30 typePools.put(type, pool); in get() 32 return pool; in get() 42 static public <T> void set (Class<T> type, Pool<T> pool) { in set() argument 43 typePools.put(type, pool); in set() 54 Pool pool = typePools.get(object.getClass()); in free() local 55 if (pool == null) return; // Ignore freeing an object that was never retained. in free() 56 pool.free(object); in free() [all …]
|
/external/libgdx/extensions/gdx-bullet/jni/src/custom/gdx/common/ |
D | jniHelpers.cpp | 7 …: env(0), cls(0), pool(0), tmp(0), poolField(poolField), typeName(typeName), tempField(tempField),… in GdxPool() 11 if (pool) in ~GdxPool() 12 env->DeleteGlobalRef(pool); in ~GdxPool() 23 pool = env->NewGlobalRef(env->GetStaticObjectField(cls, poolFieldID)); in setEnv() 24 jclass poolClass = env->GetObjectClass(pool); in setEnv() 37 jobject result = env->CallObjectMethod(pool, obtainMethod); in obtain() 42 env->CallVoidMethod(pool, freeMethod, obj); in free() 53 GdxPooledObject::GdxPooledObject(JNIEnv * const &e, GdxPool * const &pool, const bool &autoFree) in GdxPooledObject() argument 54 : pool(pool), autoFree(autoFree), obj(pool->obtain(e)) { in GdxPooledObject() 56 GdxPooledObject::GdxPooledObject(JNIEnv * const &e, GdxPool &pool, const bool &autoFree) in GdxPooledObject() argument [all …]
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
D | AnnotationsWriter.java | 61 private ConstPool pool; field in AnnotationsWriter 71 pool = cp; in AnnotationsWriter() 78 return pool; in getConstPool() 121 annotation(pool.addUtf8Info(type), numMemberValuePairs); in annotation() 150 memberValuePair(pool.addUtf8Info(memberName)); in memberValuePair() 174 constValueIndex('Z', pool.addIntegerInfo(value ? 1 : 0)); in constValueIndex() 184 constValueIndex('B', pool.addIntegerInfo(value)); in constValueIndex() 194 constValueIndex('C', pool.addIntegerInfo(value)); in constValueIndex() 204 constValueIndex('S', pool.addIntegerInfo(value)); in constValueIndex() 214 constValueIndex('I', pool.addIntegerInfo(value)); in constValueIndex() [all …]
|
/external/skia/tests/ |
D | DiscardableMemoryPoolTest.cpp | 12 SkAutoTUnref<SkDiscardableMemoryPool> pool( in DEF_TEST() local 14 pool->setRAMBudget(3); in DEF_TEST() 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST() 17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); in DEF_TEST() 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); in DEF_TEST() 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST() 25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); in DEF_TEST() 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); in DEF_TEST() 27 pool->setRAMBudget(400); in DEF_TEST() 29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); in DEF_TEST() [all …]
|
/external/libxml2/ |
D | dict.c | 242 xmlDictStringsPtr pool; in xmlDictAddString() local 250 pool = dict->strings; in xmlDictAddString() 251 while (pool != NULL) { in xmlDictAddString() 252 if (pool->end - pool->free > namelen) in xmlDictAddString() 254 if (pool->size > size) size = pool->size; in xmlDictAddString() 255 limit += pool->size; in xmlDictAddString() 256 pool = pool->next; in xmlDictAddString() 261 if (pool == NULL) { in xmlDictAddString() 270 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString() 271 if (pool == NULL) in xmlDictAddString() [all …]
|
/external/libevent/ |
D | evrpc.c | 200 static void evrpc_pool_schedule(struct evrpc_pool *pool); 512 struct evrpc_pool *pool = mm_calloc(1, sizeof(struct evrpc_pool)); in evrpc_pool_new() local 513 if (pool == NULL) in evrpc_pool_new() 516 TAILQ_INIT(&pool->connections); in evrpc_pool_new() 517 TAILQ_INIT(&pool->requests); in evrpc_pool_new() 519 TAILQ_INIT(&pool->paused_requests); in evrpc_pool_new() 521 TAILQ_INIT(&pool->input_hooks); in evrpc_pool_new() 522 TAILQ_INIT(&pool->output_hooks); in evrpc_pool_new() 524 pool->base = base; in evrpc_pool_new() 525 pool->timeout = -1; in evrpc_pool_new() [all …]
|
/external/llvm/test/CodeGen/XCore/ |
D | atomic.ll | 18 @pool = external global i64 24 ; CHECK: ldw r[[R0:[0-9]+]], dp[pool] 25 ; CHECK-NEXT: ldaw r[[R1:[0-9]+]], dp[pool] 28 %0 = load atomic i32, i32* bitcast (i64* @pool to i32*) acquire, align 4 32 %1 = load atomic i16, i16* bitcast (i64* @pool to i16*) acquire, align 2 36 %2 = load atomic i8, i8* bitcast (i64* @pool to i8*) acquire, align 1 38 ; CHECK-NEXT: ldw r4, dp[pool] 40 %3 = load atomic i32, i32* bitcast (i64* @pool to i32*) seq_cst, align 4 44 %4 = load atomic i16, i16* bitcast (i64* @pool to i16*) seq_cst, align 2 48 %5 = load atomic i8, i8* bitcast (i64* @pool to i8*) seq_cst, align 1 [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | InternersTest.java | 38 Interner<String> pool = Interners.newStrongInterner(); in testStrong_simplistic() local 39 assertSame(canonical, pool.intern(canonical)); in testStrong_simplistic() 40 assertSame(canonical, pool.intern(not)); in testStrong_simplistic() 44 Interner<String> pool = Interners.newStrongInterner(); in testStrong_null() local 46 pool.intern(null); in testStrong_null() 55 Interner<String> pool = Interners.newWeakInterner(); in testWeak_simplistic() local 56 assertSame(canonical, pool.intern(canonical)); in testWeak_simplistic() 57 assertSame(canonical, pool.intern(not)); in testWeak_simplistic() 61 Interner<String> pool = Interners.newWeakInterner(); in testWeak_null() local 63 pool.intern(null); in testWeak_null() [all …]
|