Searched defs:pool (Results 1 - 8 of 8) sorted by relevance
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinWorkerThread.java | 29 * This class just maintains links to its pool and WorkQueue. The 30 * pool field is set immediately upon construction, but the 37 final ForkJoinPool pool; // the pool this thread works in field in class:ForkJoinWorkerThread 41 * Creates a ForkJoinWorkerThread operating in the given pool. 43 * @param pool the pool this thread works in 44 * @throws NullPointerException if pool is null 46 protected ForkJoinWorkerThread(ForkJoinPool pool) { argument 49 this.pool [all...] |
H A D | ForkJoinPool.java | 24 * <em>work-stealing</em>: all threads in the pool attempt to find and 25 * execute tasks submitted to the pool and/or created by other active 29 * tasks are submitted to the pool from external clients. Especially 35 * most applications. The common pool is used by any ForkJoinTask that 36 * is not explicitly submitted to a specified pool. Using the common 37 * pool normally reduces resource usage (its threads are slowly 44 * pool attempts to maintain enough active (or available) threads by 56 * {@link #toString} returns indications of pool state in a 62 * engaged in fork/join computations in the current pool. The main 66 * tasks that are already executing in a pool shoul 523 newThread(ForkJoinPool pool) argument 532 newThread(ForkJoinPool pool) argument 633 final ForkJoinPool pool; // the containing pool (may be null) field in class:ForkJoinPool.WorkQueue 642 WorkQueue(ForkJoinPool pool, ForkJoinWorkerThread owner, int mode, int seed) argument [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
H A D | 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;
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | RecursiveActionTest.java | 52 private void testInvokeOnPool(ForkJoinPool pool, RecursiveAction a) { argument 56 assertNull(pool.invoke(a)); 60 joinPool(pool); 715 * getPool of executing task returns its pool 760 * getPool of current thread in pool returns its pool 774 * getPoolIndex of current thread in pool returns 0 <= value < poolSize 783 // pool size can shrink after assigning index, so cannot check
|
H A D | RecursiveTaskTest.java | 48 private <T> T testInvokeOnPool(ForkJoinPool pool, RecursiveTask<T> a) { argument 52 T result = pool.invoke(a); 57 joinPool(pool); 551 * getPool of executing task returns its pool
|
H A D | CountedCompleterTest.java | 55 private void testInvokeOnPool(ForkJoinPool pool, ForkJoinTask a) { argument 64 assertNull(pool.invoke(a)); 73 joinPool(pool); 925 * getPool of executing task returns its pool
|
H A D | ForkJoinTaskTest.java | 54 private void testInvokeOnPool(ForkJoinPool pool, RecursiveAction a) { argument 63 assertNull(pool.invoke(a)); 72 joinPool(pool); 706 * getPool of executing task returns its pool
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | BerInputStream.java | 796 private Object[][] pool; field in class:BerInputStream 799 if (pool == null) { 800 pool = new Object[2][10]; 804 for (; i < pool[0].length && pool[0][i] != null; i++) { 805 if (pool[0][i] == key) { 806 pool[1][i] = entry; 811 if (i == pool[0].length) { 812 Object[][] newPool = new Object[pool[0].length * 2][2]; 813 System.arraycopy(pool[ [all...] |
Completed in 211 milliseconds