diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index d2cf941faac96..81995a79d9d8f 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -554,6 +554,7 @@ public final class SystemServer implements Dumpable { if (maxFd > enableThreshold) { // Do a manual GC to clean up fds that are hanging around as garbage. System.gc(); + System.runFinalization(); maxFd = getMaxFd(); }