package com.mbridge.msdk.dycreator.bus; import java.util.ArrayList; import java.util.List; /* loaded from: classes4.dex */ final class PendingPost { private static final List d = new ArrayList(); Object a; Subscription b; PendingPost c; private PendingPost(Object obj, Subscription subscription) { this.a = obj; this.b = subscription; } public static PendingPost a(Subscription subscription, Object obj) { List list = d; synchronized (list) { try { int size = list.size(); if (size > 0) { PendingPost remove = list.remove(size - 1); remove.a = obj; remove.b = subscription; remove.c = null; return remove; } return new PendingPost(obj, subscription); } catch (Throwable th) { throw th; } } } public static void a(PendingPost pendingPost) { pendingPost.a = null; pendingPost.b = null; pendingPost.c = null; List list = d; synchronized (list) { try { if (list.size() < 10000) { list.add(pendingPost); } } catch (Throwable th) { throw th; } } } }