Merge "Fix gNumProxies double increment." am: 18f8500e32 am: 1b4f537429

am: 445f60fc1a

Change-Id: I90e203f48905b9a5e38d2be4a36b2bcb46097ac4
This commit is contained in:
Martijn Coenen
2018-02-07 16:31:52 +00:00
committed by android-build-merger

View File

@@ -673,7 +673,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;
}