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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user