diff options
author | Wei Wang <wangw@codeaurora.org> | 2015-03-23 18:22:29 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-31 09:11:37 -0700 |
commit | 3ba57f5c5916be7230a237967455736a8b1173c6 (patch) | |
tree | b1c4445c609488de34f0103fffc121655022db2b /core/jni | |
parent | ed047b20714e383a102f14872e0adfcc19eabd79 (diff) | |
download | frameworks_base-3ba57f5c5916be7230a237967455736a8b1173c6.zip frameworks_base-3ba57f5c5916be7230a237967455736a8b1173c6.tar.gz frameworks_base-3ba57f5c5916be7230a237967455736a8b1173c6.tar.bz2 |
binder: adjust GC interval for binder ops
The current value is too conservative, and causes
janks in certain use cases due to frequent explict GC.
Change-Id: Iba8eecd4e8ed7dce879c144fdc4407c12f76a749
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_util_Binder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp index c139cd7..9718fd7 100644 --- a/core/jni/android_util_Binder.cpp +++ b/core/jni/android_util_Binder.cpp @@ -144,7 +144,7 @@ static volatile int32_t gNumDeathRefs = 0; static void incRefsCreated(JNIEnv* env) { int old = android_atomic_inc(&gNumRefsCreated); - if (old == 200) { + if (old == 2000) { android_atomic_and(0, &gNumRefsCreated); env->CallStaticVoidMethod(gBinderInternalOffsets.mClass, gBinderInternalOffsets.mForceGc); |