Merge "Add System.runFinalization() call" into sc-dev

This commit is contained in:
Hans Boehm
2021-07-09 23:04:30 +00:00
committed by Android (Google) Code Review

View File

@@ -552,6 +552,7 @@ public final class SystemServer implements Dumpable {
if (maxFd > enableThreshold) { if (maxFd > enableThreshold) {
// Do a manual GC to clean up fds that are hanging around as garbage. // Do a manual GC to clean up fds that are hanging around as garbage.
System.gc(); System.gc();
System.runFinalization();
maxFd = getMaxFd(); maxFd = getMaxFd();
} }