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

Commit 223d668f authored by Wei Wang's avatar Wei Wang Committed by Linux Build Service Account
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 b607dedd
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);