Merge "Add System.runFinalization() call" into sc-dev am: 84209e128d

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

Change-Id: Ibae5fe648a364f743d4be4f7b558024906387a91
This commit is contained in:
Hans Boehm
2021-07-09 23:15:08 +00:00
committed by Automerger Merge Worker

View File

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