29 lines
1018 B
Java
29 lines
1018 B
Java
package com.google.android.gms.internal.firebase_messaging;
|
|
|
|
import java.lang.ref.Reference;
|
|
import java.lang.ref.ReferenceQueue;
|
|
import java.util.List;
|
|
import java.util.Vector;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzo {
|
|
private final ConcurrentHashMap<zzr, List<Throwable>> zza = new ConcurrentHashMap<>(16, 0.75f, 10);
|
|
private final ReferenceQueue<Throwable> zzb = new ReferenceQueue<>();
|
|
|
|
public final List<Throwable> zza(Throwable th, boolean z) {
|
|
Reference<? extends Throwable> poll = this.zzb.poll();
|
|
while (poll != null) {
|
|
this.zza.remove(poll);
|
|
poll = this.zzb.poll();
|
|
}
|
|
List<Throwable> list = this.zza.get(new zzr(th, null));
|
|
if (list != null) {
|
|
return list;
|
|
}
|
|
Vector vector = new Vector(2);
|
|
List<Throwable> putIfAbsent = this.zza.putIfAbsent(new zzr(th, this.zzb), vector);
|
|
return putIfAbsent == null ? vector : putIfAbsent;
|
|
}
|
|
}
|