Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 75) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java173 for (Wrapper w : values()) { in checkConvertibleFrom()
174 assert(w.isConvertibleFrom(w)); in checkConvertibleFrom()
175 assert(VOID.isConvertibleFrom(w)); in checkConvertibleFrom()
176 if (w != VOID) { in checkConvertibleFrom()
177 assert(OBJECT.isConvertibleFrom(w)); in checkConvertibleFrom()
178 assert(!w.isConvertibleFrom(VOID)); in checkConvertibleFrom()
181 if (w != CHAR) { in checkConvertibleFrom()
182 assert(!CHAR.isConvertibleFrom(w)); in checkConvertibleFrom()
183 if (!w.isConvertibleFrom(INT)) in checkConvertibleFrom()
184 assert(!w.isConvertibleFrom(CHAR)); in checkConvertibleFrom()
[all …]
/libcore/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java116 final T[] w; field in ArraysParallelSortHelpers.FJObject.Sorter
120 Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size, in Sorter() argument
124 this.a = a; this.w = w; this.base = base; this.size = size; in Sorter()
131 T[] a = this.a, w = this.w; // localize all params in compute() local
135 Relay fc = new Relay(new Merger<>(s, w, a, wb, h, in compute()
137 Relay rc = new Relay(new Merger<>(fc, a, w, b+h, q, in compute()
139 new Sorter<>(rc, a, w, b+u, n-u, wb+u, g, c).fork(); in compute()
140 new Sorter<>(rc, a, w, b+h, q, wb+h, g, c).fork(); in compute()
141 Relay bc = new Relay(new Merger<>(fc, a, w, b, q, in compute()
143 new Sorter<>(bc, a, w, b+q, h-q, wb+q, g, c).fork(); in compute()
[all …]
DIllegalFormatWidthException.java41 private int w; field in IllegalFormatWidthException
49 public IllegalFormatWidthException(int w) { in IllegalFormatWidthException() argument
50 this.w = w; in IllegalFormatWidthException()
60 return w; in getWidth()
64 return Integer.toString(w); in getMessage()
/libcore/ojluni/src/main/java/java/security/spec/
DECPublicKeySpec.java41 private ECPoint w; field in ECPublicKeySpec
55 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { in ECPublicKeySpec() argument
56 if (w == null) { in ECPublicKeySpec()
62 if (w == ECPoint.POINT_INFINITY) { in ECPublicKeySpec()
65 this.w = w; in ECPublicKeySpec()
74 return w; in getW()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java766 for (Worker w : workers) in checkShutdownAccess()
767 security.checkAccess(w.thread); in checkShutdownAccess()
777 for (Worker w : workers) in interruptWorkers()
778 w.interruptIfStarted(); in interruptWorkers()
804 for (Worker w : workers) { in interruptIdleWorkers()
805 Thread t = w.thread; in interruptIdleWorkers()
806 if (!t.isInterrupted() && w.tryLock()) { in interruptIdleWorkers()
811 w.unlock(); in interruptIdleWorkers()
927 Worker w = null; in addWorker() local
929 w = new Worker(firstTask); in addWorker()
[all …]
DForkJoinPool.java1494 final void registerWorker(WorkQueue w) {
1498 if (w != null && lock != null) {
1499 int modebits = (mode & FIFO) | w.config;
1500 w.array = new ForkJoinTask<?>[INITIAL_QUEUE_CAPACITY];
1501 w.stackPred = seed; // stash for runWorker
1503 w.initializeInnocuousWorker();
1513 w.phase = w.config = id | modebits; // now publishable
1516 qs[id] = w;
1520 as[id & am] = w;
1549 WorkQueue w = null;
[all …]
DForkJoinWorkerThread.java160 ForkJoinPool.WorkQueue w = workQueue; in run() local
161 if (p != null && w != null) { // skip on failed initialization in run()
163 p.registerWorker(w); in run()
165 p.runWorker(w); in run()
DExchanger.java367 Thread w = q.parked; in arenaExchange() local
368 if (w != null) in arenaExchange()
369 LockSupport.unpark(w); in arenaExchange()
464 Thread w = q.parked; in slotExchange() local
465 if (w != null) in slotExchange()
466 LockSupport.unpark(w); in slotExchange()
DSynchronousQueue.java259 SNode m; Thread w; in tryMatch() local
262 if ((w = waiter) != null) in tryMatch()
263 LockSupport.unpark(w); in tryMatch()
373 Thread w = Thread.currentThread(); in transfer() local
379 w.isInterrupted()) { in transfer()
392 s.waiter = w; // enable signal in transfer()
672 Thread w = Thread.currentThread(); in transfer() local
678 w.isInterrupted()) { in transfer()
693 s.waiter = w; in transfer()
DForkJoinTask.java652 Thread t; ForkJoinWorkerThread w; in fork() local
654 (w = (ForkJoinWorkerThread)t).workQueue.push(this, w.pool); in fork()
1072 Thread t; ForkJoinWorkerThread w; ForkJoinPool p; in helpQuiesce() local
1074 (p = (w = (ForkJoinWorkerThread)t).pool) != null) in helpQuiesce()
1075 p.helpQuiescePool(w.workQueue, Long.MAX_VALUE, false); in helpQuiesce()
1268 Thread t; ForkJoinWorkerThread w; in pollTask() local
1270 (w = (ForkJoinWorkerThread)t).pool.nextTaskFor(w.workQueue) : in pollTask()
DArrayBlockingQueue.java1564 int w = beg; in bulkRemoveModified() local
1566 ; w = 0) { // w rejoins i on second leg in bulkRemoveModified()
1570 es[w++] = es[i]; in bulkRemoveModified()
1573 for (i = 0, to = end, k -= capacity; i < to && w < capacity; i++) in bulkRemoveModified()
1575 es[w++] = es[i]; in bulkRemoveModified()
1577 if (w == capacity) w = 0; // "corner" case in bulkRemoveModified()
1581 count -= distanceNonEmpty(w, end); in bulkRemoveModified()
1582 circularClear(es, putIndex = w, end); in bulkRemoveModified()
/libcore/luni/src/test/java/tests/security/spec/
DECPublicKeySpecTest.java29 ECPoint w; field in ECPublicKeySpecTest
42 w = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); in setUp()
44 ecpks = new ECPublicKeySpec(w, params); in setUp()
48 w = null; in tearDown()
65 assertEquals("wrong w value", w, ecpks.getW()); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
77 new ECPublicKeySpec(w, null); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
88 assertEquals("wrong w value", w, ecpks.getW()); in testGetW()
/libcore/ojluni/src/test/java/lang/StrictMath/
DFdlibmTranslit.java94 double r, s, t = 0.0, w; in compute() local
129 w = t + t; in compute()
130 r = (r - t) / (w + r); // r-s is exact in compute()
165 double t1, t2, y1, y2, w; in compute() local
188 w = a + b; // for sNaN in compute()
190 w = a; in compute()
193 w = b; in compute()
195 return w; in compute()
223 w = a - b; in compute()
224 if (w > b) { in compute()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java777 Thread first = null, w; Node h, s; in getFirstQueuedThread() local
783 if ((w = p.waiter) != null) in getFirstQueuedThread()
784 first = w; in getFirstQueuedThread()
1170 ConditionNode w = firstWaiter, trail = null; in unlinkCancelledWaiters() local
1171 while (w != null) { in unlinkCancelledWaiters()
1172 ConditionNode next = w.nextWaiter; in unlinkCancelledWaiters()
1173 if ((w.status & COND) == 0) { in unlinkCancelledWaiters()
1174 w.nextWaiter = null; in unlinkCancelledWaiters()
1182 trail = w; in unlinkCancelledWaiters()
1183 w = next; in unlinkCancelledWaiters()
[all …]
DAbstractQueuedSynchronizer.java1143 Thread first = null, w; Node h, s; in getFirstQueuedThread() local
1149 if ((w = p.waiter) != null) in getFirstQueuedThread()
1150 first = w; in getFirstQueuedThread()
1536 ConditionNode w = firstWaiter, trail = null; in unlinkCancelledWaiters() local
1537 while (w != null) { in unlinkCancelledWaiters()
1538 ConditionNode next = w.nextWaiter; in unlinkCancelledWaiters()
1539 if ((w.status & COND) == 0) { in unlinkCancelledWaiters()
1540 w.nextWaiter = null; in unlinkCancelledWaiters()
1548 trail = w; in unlinkCancelledWaiters()
1549 w = next; in unlinkCancelledWaiters()
[all …]
DReentrantReadWriteLock.java396 int w = exclusiveCount(c); in tryAcquire() local
399 if (w == 0 || current != getExclusiveOwnerThread()) in tryAcquire()
401 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()
568 int w = exclusiveCount(c); in tryWriteLock() local
569 if (w == 0 || current != getExclusiveOwnerThread()) in tryWriteLock()
571 if (w == MAX_COUNT) in tryWriteLock()
1495 int w = Sync.exclusiveCount(c); in toString() local
1499 "[Write locks = " + w + ", Read locks = " + r + "]"; in toString()
/libcore/ojluni/src/test/java/math/BigInteger/
DModPow.java51 BigInteger w = base.pow(exp.intValue()).mod(m); in testModPow() local
52 Assert.assertEquals(z, w, in testModPow()
53 base +" ** " + exp + " mod "+ m + " modPow : " + z + "pow.mod: " + w); in testModPow()
DBigIntegerTest.java411 BigInteger w = u.shiftLeft(a); in multiplyLarge() local
419 BigInteger karatsubaMultiplyResult = w.multiply(z); in multiplyLarge()
454 BigInteger w = u.shiftLeft(a); in squareLarge() local
457 BigInteger karatsubaSquareResult = w.multiply(w); in squareLarge()
467 BigInteger w = u.shiftLeft(a); in squareLarge() local
470 BigInteger toomCookSquareResult = w.multiply(w); in squareLarge()
508 BigInteger w = u.multiply(BigInteger.ONE.shiftLeft(a)); in divideLarge() local
514 BigInteger[] bzResult = w.divideAndRemainder(z); in divideLarge()
601 BigInteger w = x.or(y).andNot(x.and(y)); in bitwise() local
602 Assert.assertEquals(z, w, "Test identity x^y == x|y &~ x&y"); in bitwise()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodTypeForm.java182 Wrapper w = Wrapper.forPrimitiveType(pt); in MethodTypeForm() local
183 if (w.isDoubleWord()) ++lac; in MethodTypeForm()
184 if (w.isSubwordOrInt() && pt != int.class) { in MethodTypeForm()
196 Wrapper w = Wrapper.forPrimitiveType(rt); in MethodTypeForm() local
197 if (w.isDoubleWord()) ++lrc; in MethodTypeForm()
198 if (w.isSubwordOrInt() && rt != int.class) in MethodTypeForm()
229 Wrapper w = Wrapper.forBasicType(pt); in MethodTypeForm() local
230 if (w.isDoubleWord()) --slot; in MethodTypeForm()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java376 private StringBuilder append(StringBuilder sb, int w, int d) { in append() argument
377 while (w > 0) { in append()
378 sb.append((char)(d/w + '0')); in append()
379 d = d % w; in append()
380 w /= 10; in append()
463 int w = 100_000_000; in toString()
466 w /= 10; in toString()
468 append(sb, w, fraction); in toString()
DPosixFilePermissions.java42 private static void writeBits(StringBuilder sb, boolean r, boolean w, boolean x) { in writeBits() argument
48 if (w) { in writeBits()
/libcore/ojluni/src/test/java/lang/invoke/
DPermuteArgsTest.java68 static Object list4I(int w, int x, int y, int z) { in list4I() argument
69 return Arrays.asList(w, x, y, z); in list4I()
77 static Object list4J(long w, long x, long y, long z) { in list4J() argument
78 return Arrays.asList(w, x, y, z); in list4J()
80 static Object list2I2J(int w, int x, long y, long z) { in list2I2J() argument
81 return Arrays.asList(w, x, y, z); in list2I2J()
83 static Object list2J2I(long w, long x, int y, int z) { in list2J2I() argument
84 return Arrays.asList(w, x, y, z); in list2J2I()
104 static Object listJLLJ(long w, Object x, Object y, long z) { in listJLLJ() argument
105 return Arrays.asList(w, x, y, z); in listJLLJ()
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java500 double w; in parse() local
504 w = MAX_WEIGHT; in parse()
509 w = Double.parseDouble(range.substring(index)); in parse()
517 if (w < MIN_WEIGHT || w > MAX_WEIGHT) { in parse()
518 throw new IllegalArgumentException("weight=" + w in parse()
526 LanguageRange lr = new LanguageRange(r, w); in parse()
529 if (list.get(j).getWeight() < w) { in parse()
545 list.add(index+1, new LanguageRange(equivalent, w)); in parse()
555 list.add(index+1, new LanguageRange(equiv, w)); in parse()
564 list.add(index+1, new LanguageRange(equivalent, w)); in parse()
/libcore/ojluni/src/main/java/java/sql/
DSQLWarning.java212 public void setNextWarning(SQLWarning w) { in setNextWarning() argument
213 setNextException(w); in setNextWarning()
/libcore/benchmarks/src/benchmarks/
DXmlSerializeBenchmark.java51 CharArrayWriter w = new CharArrayWriter(); in serializeRandomXml() local
52 serializer.setOutput(w); in serializeRandomXml()

123