am 95e6c78f: Merge "Fix binder force gc will block binder thread" into mnc-dev

* commit '95e6c78f3f71850931f69fc562f68e0c46430981':
  Fix binder force gc will block binder thread
This commit is contained in:
Hiroshi Yamauchi
2015-05-05 20:42:04 +00:00
committed by Android Git Automerger

View File

@@ -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() {