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

Commit b7d16160 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "binder: adjust GC interval for binder ops"

parents a73c9bcc 3ba57f5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -144,7 +144,7 @@ static volatile int32_t gNumDeathRefs = 0;
static void incRefsCreated(JNIEnv* env)
static void incRefsCreated(JNIEnv* env)
{
{
    int old = android_atomic_inc(&gNumRefsCreated);
    int old = android_atomic_inc(&gNumRefsCreated);
    if (old == 200) {
    if (old == 2000) {
        android_atomic_and(0, &gNumRefsCreated);
        android_atomic_and(0, &gNumRefsCreated);
        env->CallStaticVoidMethod(gBinderInternalOffsets.mClass,
        env->CallStaticVoidMethod(gBinderInternalOffsets.mClass,
                gBinderInternalOffsets.mForceGc);
                gBinderInternalOffsets.mForceGc);