what-the-bank/sources/com/google/common/util/concurrent/Striped$SmallLazyStriped$$E...

26 lines
895 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}