26 lines
895 B
Java
26 lines
895 B
Java
|
package com.google.common.util.concurrent;
|
||
|
|
||
|
import java.util.concurrent.atomic.AtomicReferenceArray;
|
||
|
import sun.misc.Unsafe;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final /* synthetic */ class Striped$SmallLazyStriped$$ExternalSyntheticBackportWithForwarding0 {
|
||
|
public static /* synthetic */ boolean m(Unsafe unsafe, Object obj, long j, Object obj2, Object obj3) {
|
||
|
while (!unsafe.compareAndSwapObject(obj, j, obj2, obj3)) {
|
||
|
if (unsafe.getObject(obj, j) != obj2) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ boolean m(AtomicReferenceArray atomicReferenceArray, int i, Object obj, Object obj2) {
|
||
|
while (!atomicReferenceArray.compareAndSet(i, obj, obj2)) {
|
||
|
if (atomicReferenceArray.get(i) != obj) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
}
|