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> zza = new ConcurrentHashMap<>(16, 0.75f, 10); private final ReferenceQueue zzb = new ReferenceQueue<>(); public final List zza(Throwable th, boolean z) { Reference poll = this.zzb.poll(); while (poll != null) { this.zza.remove(poll); poll = this.zzb.poll(); } List list = this.zza.get(new zzr(th, null)); if (list != null) { return list; } Vector vector = new Vector(2); List putIfAbsent = this.zza.putIfAbsent(new zzr(th, this.zzb), vector); return putIfAbsent == null ? vector : putIfAbsent; } }