/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | LockSupport.java | 95 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in LockSupport 100 parkBlockerOffset = unsafe.objectFieldOffset 107 unsafe.putObject(t, parkBlockerOffset, arg); in setBlocker() 123 unsafe.unpark(thread); in unpark() 157 unsafe.park(false, 0L); in park() 197 unsafe.park(false, nanos); in parkNanos() 238 unsafe.park(true, deadline); in parkUntil() 257 return unsafe.getObjectVolatile(t, parkBlockerOffset); in getBlocker() 286 unsafe.park(false, 0L); in park() 320 unsafe.park(false, nanos); in parkNanos() [all …]
|
D | AbstractQueuedSynchronizer.java | 545 return unsafe.compareAndSwapInt(this, stateOffset, expect, update); in compareAndSetState() 2237 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AbstractQueuedSynchronizer 2246 stateOffset = unsafe.objectFieldOffset 2248 headOffset = unsafe.objectFieldOffset 2250 tailOffset = unsafe.objectFieldOffset 2252 waitStatusOffset = unsafe.objectFieldOffset 2254 nextOffset = unsafe.objectFieldOffset 2264 return unsafe.compareAndSwapObject(this, headOffset, null, update); in compareAndSetHead() 2271 return unsafe.compareAndSwapObject(this, tailOffset, expect, update); in compareAndSetTail() 2280 return unsafe.compareAndSwapInt(node, waitStatusOffset, in compareAndSetWaitStatus() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 315 return unsafe.compareAndSwapLong(this, stateOffset, expect, update); in compareAndSetState() 2009 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AbstractQueuedLongSynchronizer 2018 stateOffset = unsafe.objectFieldOffset 2020 headOffset = unsafe.objectFieldOffset 2022 tailOffset = unsafe.objectFieldOffset 2024 waitStatusOffset = unsafe.objectFieldOffset 2026 nextOffset = unsafe.objectFieldOffset 2036 return unsafe.compareAndSwapObject(this, headOffset, null, update); in compareAndSetHead() 2043 return unsafe.compareAndSwapObject(this, tailOffset, expect, update); in compareAndSetTail() 2052 return unsafe.compareAndSwapInt(node, waitStatusOffset, in compareAndSetWaitStatus() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReferenceArray.java | 25 private static final Unsafe unsafe; field in AtomicReferenceArray 33 unsafe = Unsafe.getUnsafe(); 34 arrayFieldOffset = unsafe.objectFieldOffset 36 base = unsafe.arrayBaseOffset(Object[].class); 37 int scale = unsafe.arrayIndexScale(Object[].class); 100 return (E) unsafe.getObjectVolatile(array, offset); in getRaw() 110 unsafe.putObjectVolatile(array, checkedByteOffset(i), newValue); in set() 121 unsafe.putOrderedObject(array, checkedByteOffset(i), newValue); in lazySet() 156 return unsafe.compareAndSwapObject(array, offset, expect, update); in compareAndSetRaw() 207 unsafe.putObjectVolatile(this, arrayFieldOffset, a); in readObject()
|
D | AtomicBoolean.java | 24 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicBoolean 29 valueOffset = unsafe.objectFieldOffset 72 return unsafe.compareAndSwapInt(this, valueOffset, e, u); in compareAndSet() 90 return unsafe.compareAndSwapInt(this, valueOffset, e, u); in weakCompareAndSet() 110 unsafe.putOrderedInt(this, valueOffset, v); in lazySet()
|
D | AtomicReference.java | 21 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicReference 26 valueOffset = unsafe.objectFieldOffset 73 unsafe.putOrderedObject(this, valueOffset, newValue); in lazySet() 85 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); in compareAndSet() 101 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); in weakCompareAndSet()
|
D | AtomicLongArray.java | 20 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicLongArray 21 private static final int base = unsafe.arrayBaseOffset(long[].class); 26 int scale = unsafe.arrayIndexScale(long[].class); 85 return unsafe.getLongVolatile(array, offset); in getRaw() 95 unsafe.putLongVolatile(array, checkedByteOffset(i), newValue); in set() 106 unsafe.putOrderedLong(array, checkedByteOffset(i), newValue); in lazySet() 141 return unsafe.compareAndSwapLong(array, offset, expect, update); in compareAndSetRaw()
|
D | AtomicIntegerArray.java | 21 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicIntegerArray 22 private static final int base = unsafe.arrayBaseOffset(int[].class); 27 int scale = unsafe.arrayIndexScale(int[].class); 86 return unsafe.getIntVolatile(array, offset); in getRaw() 96 unsafe.putIntVolatile(array, checkedByteOffset(i), newValue); in set() 107 unsafe.putOrderedInt(array, checkedByteOffset(i), newValue); in lazySet() 142 return unsafe.compareAndSwapInt(array, offset, expect, update); in compareAndSetRaw()
|
D | AtomicLongFieldUpdater.java | 241 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicLongFieldUpdater.CASUpdater 282 offset = unsafe.objectFieldOffset(field); in CASUpdater() 294 return unsafe.compareAndSwapLong(obj, offset, expect, update); in compareAndSet() 299 return unsafe.compareAndSwapLong(obj, offset, expect, update); in weakCompareAndSet() 304 unsafe.putLongVolatile(obj, offset, newValue); in set() 309 unsafe.putOrderedLong(obj, offset, newValue); in lazySet() 314 return unsafe.getLongVolatile(obj, offset); in get() 335 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicLongFieldUpdater.LockedUpdater 376 offset = unsafe.objectFieldOffset(field); in LockedUpdater() 389 long v = unsafe.getLong(obj, offset); in compareAndSet() [all …]
|
D | AtomicLong.java | 27 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicLong 46 valueOffset = unsafe.objectFieldOffset 93 unsafe.putOrderedLong(this, valueOffset, newValue); in lazySet() 120 return unsafe.compareAndSwapLong(this, valueOffset, expect, update); in compareAndSet() 136 return unsafe.compareAndSwapLong(this, valueOffset, expect, update); in weakCompareAndSet()
|
D | AtomicInteger.java | 27 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicInteger 32 valueOffset = unsafe.objectFieldOffset 79 unsafe.putOrderedInt(this, valueOffset, newValue); in lazySet() 106 return unsafe.compareAndSwapInt(this, valueOffset, expect, update); in compareAndSet() 122 return unsafe.compareAndSwapInt(this, valueOffset, expect, update); in weakCompareAndSet()
|
D | AtomicIntegerFieldUpdater.java | 241 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl 283 offset = unsafe.objectFieldOffset(field); in AtomicIntegerFieldUpdaterImpl() 312 return unsafe.compareAndSwapInt(obj, offset, expect, update); in compareAndSet() 317 return unsafe.compareAndSwapInt(obj, offset, expect, update); in weakCompareAndSet() 322 unsafe.putIntVolatile(obj, offset, newValue); in set() 327 unsafe.putOrderedInt(obj, offset, newValue); in lazySet() 332 return unsafe.getIntVolatile(obj, offset); in get()
|
D | AtomicReferenceFieldUpdater.java | 157 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl 218 offset = unsafe.objectFieldOffset(field); in AtomicReferenceFieldUpdaterImpl() 260 return unsafe.compareAndSwapObject(obj, offset, expect, update); in compareAndSet() 269 return unsafe.compareAndSwapObject(obj, offset, expect, update); in weakCompareAndSet() 277 unsafe.putObjectVolatile(obj, offset, newValue); in set() 285 unsafe.putOrderedObject(obj, offset, newValue); in lazySet() 292 return (V)unsafe.getObjectVolatile(obj, offset); in get()
|