/external/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ |
memory.c | 83 MemoryPool *pool; local 90 if (!(pool = malloc(chunksize))) return 0; 91 pool->next = 0; 92 pool->chunksize = chunksize; 93 pool->alignmask = (uintptr_t)(align)-1; 94 pool->free = ((uintptr_t)(pool + 1) + pool->alignmask) & ~pool->alignmask; 95 pool->end = (uintptr_t)pool + chunksize [all...] |
/external/javassist/src/main/javassist/ |
Translator.java | 35 * @param pool the <code>ClassPool</code> that this translator 42 void start(ClassPool pool) 50 * pool.get(classname).toBytecode()</pre></ul> 60 * @param pool the <code>ClassPool</code> that this translator 68 void onLoad(ClassPool pool, String classname)
|
/external/dbus/dbus/ |
dbus-mempool.c | 33 * Types and functions related to DBusMemPool. A memory pool is used 41 * @defgroup DBusMemPoolInternals Memory pool implementation details 79 * block that gets chunked up into objects in the memory pool. 85 * when we free the mem pool. 99 int element_size; /**< size of a single object in the pool */ 119 * Opaque object representing a memory pool. Memory pools allow 126 * Creates a new memory pool, or returns #NULL on failure. Objects in 127 * the pool must be at least sizeof(void*) bytes each, due to the way 132 * @param element_size size of an element allocated from the pool. 134 * @returns the new pool or #NUL 140 DBusMemPool *pool; local 410 DBusMemPool *pool; local [all...] |
dbus-mempool.h | 37 void _dbus_mem_pool_free (DBusMemPool *pool); 38 void* _dbus_mem_pool_alloc (DBusMemPool *pool); 39 dbus_bool_t _dbus_mem_pool_dealloc (DBusMemPool *pool,
|
/external/collada/src/dae/ |
daeMemorySystem.cpp | 13 daeMemorySystem::alloc(daeString pool, size_t n) 15 (void)pool; 18 // printf("alloc[%s] - %d = 0x%x\n",pool,n,mem); 23 daeMemorySystem::dealloc(daeString pool, daeRawRef mem) 25 (void)pool; 26 // printf("free[%s] - 0x%x\n",pool,mem);
|
/external/webkit/Source/WebCore/platform/ |
Arena.h | 66 Arena first; // first arena in pool list. 72 void InitArenaPool(ArenaPool *pool, const char *name, 74 void FinishArenaPool(ArenaPool *pool); 75 void FreeArenaPool(ArenaPool *pool); 76 void* ArenaAllocate(ArenaPool *pool, unsigned int nb); 79 #define INIT_ARENA_POOL(pool, name, size) \ 80 InitArenaPool(pool, name, size, ARENA_ALIGN_MASK + 1) 82 #define ARENA_ALLOCATE(p, pool, nb) \ 83 Arena *_a = (pool)->current; \ 88 _p = (uword)ArenaAllocate(pool, _nb); [all...] |
Arena.cpp | 93 void InitArenaPool(ArenaPool* pool, const char*, unsigned size, unsigned align) 97 pool->mask = BITMASK(CeilingLog2(align)); 98 pool->first.next = NULL; 99 pool->first.base = pool->first.avail = pool->first.limit = 100 (uword)ARENA_ALIGN(&pool->first + 1); 101 pool->current = &pool->first; 102 pool->arenasize = size; [all...] |
/external/webkit/Tools/WebKitTestRunner/mac/ |
main.mm | 32 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 37 [pool drain];
|
/external/chromium/net/http/ |
http_network_session_peer.h | 28 void SetTransportSocketPool(TransportClientSocketPool* pool); 32 SOCKSClientSocketPool* pool); 36 HttpProxyClientSocketPool* pool); 38 void SetSSLSocketPool(SSLClientSocketPool* pool); 42 SSLClientSocketPool* pool);
|
http_network_session_peer.cc | 23 TransportClientSocketPool* pool) { 24 session_->socket_pool_manager_.transport_socket_pool_.reset(pool); 29 SOCKSClientSocketPool* pool) { 36 socket_pool_manager->socks_socket_pools_[socks_proxy] = pool; 41 HttpProxyClientSocketPool* pool) { 48 socket_pool_manager->http_proxy_socket_pools_[http_proxy] = pool; 51 void HttpNetworkSessionPeer::SetSSLSocketPool(SSLClientSocketPool* pool) { 52 session_->socket_pool_manager_.ssl_socket_pool_.reset(pool); 57 SSLClientSocketPool* pool) { 64 socket_pool_manager->ssl_socket_pools_for_proxies_[proxy_host] = pool; [all...] |
/dalvik/dx/src/com/android/dx/cf/attrib/ |
RawAttribute.java | 30 * {@code null-ok;} constant pool to use for resolution of cpis in {@link 33 private final ConstantPool pool; field in class:RawAttribute 40 * @param pool {@code null-ok;} constant pool to use for cpi resolution 42 public RawAttribute(String name, ByteArray data, ConstantPool pool) { 50 this.pool = pool; 60 * @param pool {@code null-ok;} constant pool to use for cpi resolution 63 int length, ConstantPool pool) { [all...] |
/external/javassist/src/main/javassist/bytecode/annotation/ |
AnnotationsWriter.java | 31 * 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.addUtf8Info(memberName)) [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/output/ |
ThreadLocalOutputBufferProvider.java | 24 private final ThreadLocal<StringBuilder> pool; field in class:ThreadLocalOutputBufferProvider 28 pool = new ThreadLocal<StringBuilder>() { 45 StringBuilder sb = pool.get(); 53 if (buffer != pool.get()) {
|
/frameworks/base/core/java/android/util/ |
SynchronizedPool.java | 23 class SynchronizedPool<T extends Poolable<T>> implements Pool<T> { 24 private final Pool<T> mPool; 27 public SynchronizedPool(Pool<T> pool) { 28 mPool = pool; 32 public SynchronizedPool(Pool<T> pool, Object lock) { 33 mPool = pool;
|
Pools.java | 26 public static <T extends Poolable<T>> Pool<T> simplePool(PoolableManager<T> manager) { 30 public static <T extends Poolable<T>> Pool<T> finitePool(PoolableManager<T> manager, int limit) { 34 public static <T extends Poolable<T>> Pool<T> synchronizedPool(Pool<T> pool) { 35 return new SynchronizedPool<T>(pool); 38 public static <T extends Poolable<T>> Pool<T> synchronizedPool(Pool<T> pool, Object lock) { 39 return new SynchronizedPool<T>(pool, lock) [all...] |
/frameworks/media/libvideoeditor/vss/stagefrightshells/src/ |
VideoEditorBuffer.c | 43 * @brief Allocate a pool of nbBuffers buffers 45 * @param ppool : IN The buffer pool to create 46 * @param nbBuffers : IN The number of buffers in the pool 47 * @param poolName : IN a name given to the pool 55 VIDEOEDITOR_BUFFER_Pool* pool; local 60 pool = M4OSA_NULL; 61 pool = (VIDEOEDITOR_BUFFER_Pool*)M4OSA_32bitAlignedMalloc( 63 (M4OSA_Char*)("VIDEOEDITOR_BUFFER_allocatePool: pool")); 64 if (M4OSA_NULL == pool) 70 LOGV("VIDEOEDITOR_BUFFER_allocatePool : Allocating Pool buffers") [all...] |
/external/webkit/Source/JavaScriptCore/wtf/ |
BumpPointerAllocator.h | 37 // ensureCapacity will check whether the current pool has capacity to 39 // allocate a new pool (which will be added to this one in a chain). 75 // If pointer was not allocated from this pool (or pools) then dealloc 146 // The pool passed should not have capacity, so we'll start with the next one. 150 BumpPointerPool* pool = previousPool->m_next; local 153 if (!pool) { 154 // We've run to the end; allocate a new pool. 155 pool = BumpPointerPool::create(size); 156 previousPool->m_next = pool; 157 pool->m_previous = previousPool [all...] |
/external/javassist/src/main/javassist/bytecode/ |
InstructionPrinter.java | 41 ConstPool pool = info.getConstPool(); local 55 stream.println(pos + ": " + instructionString(iterator, pos, pool)); 59 public static String instructionString(CodeIterator iter, int pos, ConstPool pool) { 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, iter.u16bitAt(pos + 1)) [all...] |
/external/webkit/Source/WebKit/mac/WebCoreSupport/ |
WebIconDatabaseClient.mm | 38 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 40 [pool drain]; 46 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 48 [pool drain]; 54 // Therefore we let WebCore handle autorelease by draining its pool "from time to time"
|
/external/chromium/third_party/libevent/ |
evrpc.c | 180 static void evrpc_pool_schedule(struct evrpc_pool *pool); 385 struct evrpc_pool *pool = calloc(1, sizeof(struct evrpc_pool)); local 386 if (pool == NULL) 389 TAILQ_INIT(&pool->connections); 390 TAILQ_INIT(&pool->requests); 392 TAILQ_INIT(&pool->input_hooks); 393 TAILQ_INIT(&pool->output_hooks); 395 pool->base = base; 396 pool->timeout = -1; 398 return (pool); 512 struct evrpc_pool *pool = ctx->pool; local 565 struct evrpc_pool *pool = ctx->pool; local 590 struct evrpc_pool *pool = ctx->pool; local [all...] |
/external/javassist/sample/vector/ |
VectorAssistant.java | 52 public CtClass[] assist(ClassPool pool, String vec, String[] args) 61 CtClass elementType = pool.get(args[0]); 63 subclass = makeSubclass2(pool, elementType); 65 subclass = makeSubclass(pool, elementType); 67 CtClass[] results = { subclass, pool.get(vec) }; 84 public CtClass makeSubclass(ClassPool pool, CtClass type) 87 CtClass vec = pool.makeClass(makeClassName(type)); 88 vec.setSuperclass(pool.get("java.util.Vector")); 90 CtClass c = pool.get("sample.vector.Sample"); 109 public CtClass makeSubclass2(ClassPool pool, CtClass type [all...] |
/external/valgrind/main/memcheck/tests/ |
mempool.c | 30 } pool; typedef in typeref:struct:_pool 32 pool *make_pool() 34 pool *p; 37 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, 43 p = (pool *)malloc(sizeof(pool)); 53 void push(pool *p) 70 void pop(pool *p) 83 void destroy_pool(pool *p [all...] |
/external/bluetooth/glib/glib/ |
gthreadpool.h | 44 * pool with the constructor function */ 52 /* Get a thread pool with the function func, at most max_threads may 63 /* Push new data into the thread pool. This task is assigned to a thread later 64 * (when the maximal number of threads is reached for that pool) or now 67 void g_thread_pool_push (GThreadPool *pool, 71 /* Set the number of threads, which can run concurrently for that pool, -1 72 * means no limit. 0 means has the effect, that the pool won't process 74 void g_thread_pool_set_max_threads (GThreadPool *pool, 77 gint g_thread_pool_get_max_threads (GThreadPool *pool); 79 /* Get the number of threads assigned to that pool. This number doesn' [all...] |
/external/webkit/Tools/TestWebKitAPI/mac/ |
main.mm | 30 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 42 [pool drain];
|
/libcore/luni/src/main/java/libcore/internal/ |
StringPool.java | 20 * A pool of string instances. Unlike the {@link String#intern() VM's 21 * interned strings}, this pool provides no guarantee of reference equality. 26 private final String[] pool = new String[512]; field in class:StringPool 53 int index = hashCode & (pool.length - 1); 55 String pooled = pool[index]; 61 pool[index] = result;
|