Merge "Fix gNumProxies double increment."

am: 18f8500e32

Change-Id: I1cc29693fd50fc033342c592841a17dbd5b9d532
This commit is contained in:
Martijn Coenen
2018-02-07 16:12:04 +00:00
committed by android-build-merger

View File

@@ -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;
}