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

Commit 9bcab22b authored by Wei Wang's avatar Wei Wang Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 3a1b6141
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);