/art/test/067-preemptive-unpark/src/ |
Main.java | 1 import sun.misc.Unsafe; 6 private static Unsafe UNSAFE; 16 UNSAFE.unpark(test); 41 * Set up {@link #UNSAFE}. 45 * Subvert the access check to get the unique Unsafe instance. 50 Field field = Unsafe.class.getDeclaredField("THE_ONE"); 53 UNSAFE = (Unsafe) field.get(null); 96 UNSAFE.park(false, 500 * 1000000); // 500 mse [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
FutureTask.java | 44 * AtomicXFieldUpdaters and instead directly use Unsafe intrinsics. 137 UNSAFE.compareAndSwapInt(this, stateOffset, NEW, 147 UNSAFE.putOrderedInt(this, stateOffset, INTERRUPTED); 201 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { 203 UNSAFE.putOrderedInt(this, stateOffset, NORMAL); // final state 219 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { 221 UNSAFE.putOrderedInt(this, stateOffset, EXCEPTIONAL); // final state 228 !UNSAFE.compareAndSwapObject(this, runnerOffset, 270 !UNSAFE.compareAndSwapObject(this, runnerOffset, 338 if (UNSAFE.compareAndSwapObject(this, waitersOffset, q, null)) [all...] |
SynchronousQueue.java | 217 UNSAFE.compareAndSwapObject(this, nextOffset, cmp, val); 230 UNSAFE.compareAndSwapObject(this, matchOffset, null, s)) { 245 UNSAFE.compareAndSwapObject(this, matchOffset, null, this); 252 // Unsafe mechanics 253 private static final sun.misc.Unsafe UNSAFE; 259 UNSAFE = sun.misc.Unsafe.getUnsafe(); 261 matchOffset = UNSAFE.objectFieldOffset 263 nextOffset = UNSAFE.objectFieldOffse [all...] |
ConcurrentLinkedQueue.java | 136 * for a volatile write to item by using Unsafe.putObject instead 157 UNSAFE.putObject(this, itemOffset, item); 161 return UNSAFE.compareAndSwapObject(this, itemOffset, cmp, val); 165 UNSAFE.putOrderedObject(this, nextOffset, val); 169 return UNSAFE.compareAndSwapObject(this, nextOffset, cmp, val); 172 // Unsafe mechanics 174 private static final sun.misc.Unsafe UNSAFE; 180 UNSAFE = sun.misc.Unsafe.getUnsafe() [all...] |
LinkedTransferQueue.java | 415 * them after use. Relies heavily on Unsafe mechanics to minimize 427 return UNSAFE.compareAndSwapObject(this, nextOffset, cmp, val); 432 return UNSAFE.compareAndSwapObject(this, itemOffset, cmp, val); 440 UNSAFE.putObject(this, itemOffset, item); // relaxed write 449 UNSAFE.putObject(this, nextOffset, this); 462 UNSAFE.putObject(this, itemOffset, this); 463 UNSAFE.putObject(this, waiterOffset, null); 508 // Unsafe mechanics 509 private static final sun.misc.Unsafe UNSAFE; [all...] |
Phaser.java | 363 if (UNSAFE.compareAndSwapLong(this, stateOffset, s, s-=adjust)) { 376 UNSAFE.compareAndSwapLong(this, stateOffset, s, n); 381 UNSAFE.compareAndSwapLong(this, stateOffset, 417 else if (UNSAFE.compareAndSwapLong(this, stateOffset, 424 if (UNSAFE.compareAndSwapLong(this, stateOffset, s, next)) 436 while (!UNSAFE.compareAndSwapLong 468 !UNSAFE.compareAndSwapLong 658 if (UNSAFE.compareAndSwapLong(this, stateOffset, s, 674 if (!UNSAFE.compareAndSwapLong(this, stateOffset, s, n)) [all...] |
ConcurrentLinkedDeque.java | 275 UNSAFE.putObject(this, itemOffset, item); 279 return UNSAFE.compareAndSwapObject(this, itemOffset, cmp, val); 283 UNSAFE.putOrderedObject(this, nextOffset, val); 287 return UNSAFE.compareAndSwapObject(this, nextOffset, cmp, val); 291 UNSAFE.putOrderedObject(this, prevOffset, val); 295 return UNSAFE.compareAndSwapObject(this, prevOffset, cmp, val); 298 // Unsafe mechanics 300 private static final sun.misc.Unsafe UNSAFE; 307 UNSAFE = sun.misc.Unsafe.getUnsafe() [all...] |
ConcurrentSkipListSet.java | 446 UNSAFE.putObjectVolatile(this, mapOffset, map); 449 private static final sun.misc.Unsafe UNSAFE; 453 UNSAFE = sun.misc.Unsafe.getUnsafe(); 455 mapOffset = UNSAFE.objectFieldOffset
|
PriorityBlockingQueue.java | 253 UNSAFE.compareAndSwapInt(this, allocationSpinLockOffset, 909 // Unsafe mechanics 910 private static final sun.misc.Unsafe UNSAFE; 914 UNSAFE = sun.misc.Unsafe.getUnsafe(); 916 allocationSpinLockOffset = UNSAFE.objectFieldOffset
|
ConcurrentSkipListMap.java | 353 return UNSAFE.compareAndSwapObject(this, headOffset, cmp, val); 396 return UNSAFE.compareAndSwapObject(this, valueOffset, cmp, val); 403 return UNSAFE.compareAndSwapObject(this, nextOffset, cmp, val); 482 // UNSAFE mechanics 484 private static final sun.misc.Unsafe UNSAFE; 490 UNSAFE = sun.misc.Unsafe.getUnsafe(); 492 valueOffset = UNSAFE.objectFieldOffset 494 nextOffset = UNSAFE.objectFieldOffse [all...] |
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
AtomicMarkableReference.java | 162 // Unsafe mechanics 164 private static final sun.misc.Unsafe UNSAFE = sun.misc.Unsafe.getUnsafe(); 166 objectFieldOffset(UNSAFE, "pair", AtomicMarkableReference.class); 169 return UNSAFE.compareAndSwapObject(this, pairOffset, cmp, val); 172 static long objectFieldOffset(sun.misc.Unsafe UNSAFE, 175 return UNSAFE.objectFieldOffset(klazz.getDeclaredField(field));
|
AtomicStampedReference.java | 162 // Unsafe mechanics 164 private static final sun.misc.Unsafe UNSAFE = sun.misc.Unsafe.getUnsafe(); 166 objectFieldOffset(UNSAFE, "pair", AtomicStampedReference.class); 169 return UNSAFE.compareAndSwapObject(this, pairOffset, cmp, val); 172 static long objectFieldOffset(sun.misc.Unsafe UNSAFE, 175 return UNSAFE.objectFieldOffset(klazz.getDeclaredField(field));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
ThreadsTest.java | 24 import sun.misc.Unsafe; 27 * Tests for the <code>park()</code> functionality of {@link Unsafe}. 30 private static Unsafe UNSAFE = null; 33 * Set up {@link #UNSAFE}. This subverts the access check to 34 * get the unique Unsafe instance. We can do this because 39 Field field = Unsafe.class.getDeclaredField("THE_ONE"); 42 UNSAFE = (Unsafe) field.get(null); 86 UNSAFE.unpark(parkerThread) [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/ |
compiler.jar | |
/external/chromium_org/third_party/checkstyle/ |
checkstyle-5.7-all.jar | |
/prebuilts/devtools/tools/lib/ |
guava-13.0.1.jar | |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
guava-14.0.1.jar | |
/prebuilts/misc/common/android-support-test/ |
espresso-core.jar | |
/prebuilts/misc/common/tradefed/ |
tradefed-prebuilt.jar | |
/prebuilts/sdk/tools/ |
jill.jar | |
/prebuilts/tools/common/gradle-plugins/repository/com/google/guava/guava/14.0/ |
guava-14.0.jar | |
/prebuilts/tools/common/guava-tools/ |
guava-13.0.1.jar | |
/prebuilts/tools/common/m2/repository/com/google/guava/guava/13.0.1/ |
guava-13.0.1.jar | |
/prebuilts/tools/common/m2/repository/com/google/guava/guava/15.0/ |
guava-15.0.jar | |
/prebuilts/tools/common/m2/repository/com/google/guava/guava/17.0/ |
guava-17.0.jar | |