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

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

Change-Id: I699bc013f7fcb65f630d3ff428ec1971d7b78f02
This commit is contained in:
Hans Boehm
2021-07-09 21:32:08 +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();
}