Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35801ee6 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "Harder failures for lazy service clients." am: e5c824b2 am:...

Merge "Harder failures for lazy service clients." am: e5c824b2 am: 6e7388c8 am: 2cb60954 am: 62062d1d

Change-Id: Ib4571cc48e1bece22bd17d5fc288a468eea19756
parents e956640e 62062d1d
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -114,6 +114,12 @@ Status ClientCounterCallback::onClients(const sp<IBinder>& service, bool clients
        mNumConnectedServices--;
        mNumConnectedServices--;
    }
    }


    // if this fails, we should switch this to keep track of clients inside
    // of mRegisteredServices so that we know which service is double-counted.
    LOG_ALWAYS_FATAL_IF(mNumConnectedServices > mRegisteredServices.size(),
                        "Invalid state: %zu services have clients, but we only know about %zu",
                        mNumConnectedServices, mRegisteredServices.size());

    ALOGI("Process has %zu (of %zu available) client(s) in use after notification %s has clients: %d",
    ALOGI("Process has %zu (of %zu available) client(s) in use after notification %s has clients: %d",
          mNumConnectedServices, mRegisteredServices.size(),
          mNumConnectedServices, mRegisteredServices.size(),
          String8(service->getInterfaceDescriptor()).string(), clients);
          String8(service->getInterfaceDescriptor()).string(), clients);