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

Commit ab3dd9fc authored by Hiroshi Yamauchi's avatar Hiroshi Yamauchi Committed by Gerrit Code Review
Browse files

Merge "Fix binder force gc will block binder thread"

parents 5bd20a3e d916c233
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import android.os.IBinder;
import android.os.SystemClock;
import android.util.EventLog;

import dalvik.system.VMRuntime;

import java.lang.ref.WeakReference;
import java.util.ArrayList;

@@ -96,7 +98,7 @@ public class BinderInternal {
    
    public static void forceGc(String reason) {
        EventLog.writeEvent(2741, reason);
        Runtime.getRuntime().gc();
        VMRuntime.getRuntime().requestConcurrentGC();
    }
    
    static void forceBinderGc() {