Merge "Add System.runFinalization() call" am: 8df5d94b98 am: 7358684565

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810

Change-Id: I96f6ce06333ae3527d5b43fcdb7e31edd434fd47
This commit is contained in:
Hans Boehm
2021-07-09 21:21:37 +00:00
committed by Automerger Merge Worker

View File

@@ -553,6 +553,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();
}