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

Commit 5183c0ee authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fix gNumProxies double increment.

Bug: 70217678
Test: proxy counts look reasonable
Change-Id: I6147d6038794eabd6b3446d78cd29af9d40ef7cc
parent 1f14eab5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -664,7 +664,7 @@ jobject javaObjectForIBinder(JNIEnv* env, const sp<IBinder>& val)
        nativeData->mObject = val;
        gNativeDataCache = nullptr;
        ++gNumProxies;
        if (++gNumProxies >= gProxiesWarned + PROXY_WARN_INTERVAL) {
        if (gNumProxies >= gProxiesWarned + PROXY_WARN_INTERVAL) {
            ALOGW("Unexpectedly many live BinderProxies: %d\n", gNumProxies);
            gProxiesWarned = gNumProxies;
        }